Skip to content

Commit

Permalink
fix(dist): concat to one file and include the module declaration
Browse files Browse the repository at this point in the history
Closes #48

Signed-off-by: Will Soto <[email protected]>
  • Loading branch information
willsoto committed Oct 18, 2016
1 parent 27f9160 commit d385bee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/webpack.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ module.exports = {
devtool: 'source-map',
context: helpers.root('src'),
entry: {
'angular2-chartist': './chartist.component.ts'
'angular2-chartist': './chartist.module.ts'
},
output: {
filename: '[name].js',
filename: 'angular2-chartist.js',
libraryTarget: 'umd',
library: 'angular2Chartist',
path: helpers.root('dist')
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "./dist/angular2-chartist.js",
"typings": "./dist/chartist.component.d.ts",
"files": [
"src/",
"dist/"
],
"git": {
Expand All @@ -14,8 +13,10 @@
}
},
"scripts": {
"clean": "rimraf dist/",
"start": "webpack-dev-server",
"build:demo": "webpack -p",
"prebuild:dist": "npm run clean",
"build:dist": "webpack --config ./config/webpack.dist.js",
"postbuild:dist": "uglifyjs dist/angular2-chartist.js --compress --mangle --screw-ie8 -o dist/angular2-chartist.min.js",
"test": "karma start",
Expand Down

0 comments on commit d385bee

Please sign in to comment.