diff options
author | Yukai Huang | 2017-03-12 21:05:19 +0800 |
---|---|---|
committer | Yukai Huang | 2017-03-12 21:10:35 +0800 |
commit | 747da6772d339329ed130f5a0dbc896be5391ef8 (patch) | |
tree | 35a0ddfa078b89e25afde14fa8642f025384e5d6 | |
parent | 4153403a8b9bed4bf6145ad3b89d204ae8c004aa (diff) |
Fix webpack copy relative path in #384
Diffstat (limited to '')
-rw-r--r-- | webpackBaseConfig.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index af92e592..12ccbf87 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -123,13 +123,8 @@ 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: 'config/**/*.js', + glob: '**/*', dot: false }, to: 'MathJax/' @@ -145,22 +140,22 @@ module.exports = { { context: path.join(__dirname, 'node_modules/reveal.js'), from: 'js', - to: 'reveal.js/' + to: 'reveal.js/js' }, { context: path.join(__dirname, 'node_modules/reveal.js'), from: 'css', - to: 'reveal.js/' + to: 'reveal.js/css' }, { context: path.join(__dirname, 'node_modules/reveal.js'), from: 'lib', - to: 'reveal.js/' + to: 'reveal.js/lib' }, { context: path.join(__dirname, 'node_modules/reveal.js'), from: 'plugin', - to: 'reveal.js/' + to: 'reveal.js/plugin' } ]) ], |