diff options
author | Max Wu | 2017-03-12 17:40:42 +0800 |
---|---|---|
committer | GitHub | 2017-03-12 17:40:42 +0800 |
commit | 4153403a8b9bed4bf6145ad3b89d204ae8c004aa (patch) | |
tree | 2fbd9d84dd989f38558ee7cb00a289cd42a5e7f2 | |
parent | 8dd91fbe66fae9fff46f26f8d51344956d7a2c2a (diff) | |
parent | 8241d945dc87b9a9e2d883e7beea933375f79185 (diff) |
Merge pull request #384 from hackmdio/webpack-fixes
Webpack fixes
Diffstat (limited to '')
-rw-r--r-- | webpackBaseConfig.js | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 419149c7..af92e592 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -123,8 +123,13 @@ module.exports = { new CopyWebpackPlugin([ { context: path.join(__dirname, 'node_modules/mathjax'), + from: 'MathJax.js', + to: 'MathJax/' + }, + { + context: path.join(__dirname, 'node_modules/mathjax'), from: { - glob: '**/*', + glob: 'config/**/*.js', dot: false }, to: 'MathJax/' @@ -132,17 +137,29 @@ module.exports = { { context: path.join(__dirname, 'node_modules/emojify.js'), from: { - glob: '**/*', + glob: 'dist/**/*', dot: false }, to: 'emojify.js/' }, { context: path.join(__dirname, 'node_modules/reveal.js'), - from: { - glob: '**/*', - dot: false + from: 'js', + to: 'reveal.js/' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'css', + to: 'reveal.js/' }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'lib', + to: 'reveal.js/' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'plugin', to: 'reveal.js/' } ]) @@ -419,5 +436,11 @@ module.exports = { node: { fs: "empty" + }, + + quiet: false, + noInfo: false, + stats: { + assets: false } }; |