Skip to content

Commit

Permalink
fix webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 21, 2016
1 parent 73f7090 commit 7bcc61b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions _develop/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ var constantPack = new webpack.DefinePlugin({
module.exports = {
context: path.resolve(__dirname, '..'),
entry: {
'quill.js': ['./quill.js'],
'quill.core.js': ['./core.js'],
'quill.core': './assets/core.styl',
'quill': ['./quill.js'],
'quill.core': [
'./core.js',
'./assets/core.styl'
],
'quill.bubble': './assets/bubble.styl',
'quill.snow': './assets/snow.styl',
'unit.js': './test/unit.js'
'unit': './test/unit.js'
},
output: {
filename: '[name]',
filename: '[name].js',
library: 'Quill',
libraryTarget: 'umd',
path: 'dist/'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"url": "https://github.com/quilljs/quill/issues"
},
"scripts": {
"build": "webpack --config _develop/webpack.config.js; rm dist/quill.bubble dist/quill.snow dist/quill.core;",
"build": "webpack --config _develop/webpack.config.js; rm dist/quill.bubble.js dist/quill.snow.js;",
"build:release": "./_develop/scripts/release.sh",
"start": "npm run build; foreman start -f _develop/procfile",
"test": "npm run test:unit",
Expand Down

0 comments on commit 7bcc61b

Please sign in to comment.