From cd91f237ab6fe60e02ce93fc1c8e7b26afeeae9e Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Sun, 19 Feb 2017 15:43:40 +0800 Subject: Only copy needed files in webpack --- webpackBaseConfig.js | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 419149c7..1e286091 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -121,10 +121,15 @@ module.exports = { inject: false }), 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/' } ]) -- cgit v1.2.3 From 8241d945dc87b9a9e2d883e7beea933375f79185 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Sun, 12 Mar 2017 16:53:04 +0800 Subject: Do not log assets info in webpack build --- webpackBaseConfig.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 1e286091..af92e592 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -436,5 +436,11 @@ module.exports = { node: { fs: "empty" + }, + + quiet: false, + noInfo: false, + stats: { + assets: false } }; -- cgit v1.2.3