Skip to content

Commit 747da67

Browse files
committed
Fix webpack copy relative path in #384
1 parent 4153403 commit 747da67

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

webpackBaseConfig.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,10 @@ module.exports = {
121121
inject: false
122122
}),
123123
new CopyWebpackPlugin([
124-
{
125-
context: path.join(__dirname, 'node_modules/mathjax'),
126-
from: 'MathJax.js',
127-
to: 'MathJax/'
128-
},
129124
{
130125
context: path.join(__dirname, 'node_modules/mathjax'),
131126
from: {
132-
glob: 'config/**/*.js',
127+
glob: '**/*',
133128
dot: false
134129
},
135130
to: 'MathJax/'
@@ -145,22 +140,22 @@ module.exports = {
145140
{
146141
context: path.join(__dirname, 'node_modules/reveal.js'),
147142
from: 'js',
148-
to: 'reveal.js/'
143+
to: 'reveal.js/js'
149144
},
150145
{
151146
context: path.join(__dirname, 'node_modules/reveal.js'),
152147
from: 'css',
153-
to: 'reveal.js/'
148+
to: 'reveal.js/css'
154149
},
155150
{
156151
context: path.join(__dirname, 'node_modules/reveal.js'),
157152
from: 'lib',
158-
to: 'reveal.js/'
153+
to: 'reveal.js/lib'
159154
},
160155
{
161156
context: path.join(__dirname, 'node_modules/reveal.js'),
162157
from: 'plugin',
163-
to: 'reveal.js/'
158+
to: 'reveal.js/plugin'
164159
}
165160
])
166161
],

0 commit comments

Comments
 (0)