summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2017-02-19 15:43:40 +0800
committerYukai Huang2017-02-19 15:43:40 +0800
commitcd91f237ab6fe60e02ce93fc1c8e7b26afeeae9e (patch)
tree16048ad4e7029d6cb4b0a37919583a9e078225a7
parent0bea4da6238b1f46562b146b32d88fc8d8b9060a (diff)
Only copy needed files in webpack
-rw-r--r--webpackBaseConfig.js27
1 files changed, 22 insertions, 5 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index 419149c7..1e286091 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/'
}
])