From 747da6772d339329ed130f5a0dbc896be5391ef8 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Sun, 12 Mar 2017 21:05:19 +0800 Subject: [PATCH] Fix webpack copy relative path in #384 --- webpackBaseConfig.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index af92e59..12ccbf8 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -121,15 +121,10 @@ 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: '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' } ]) ],