Fix webpack copy relative path in #384
This commit is contained in:
parent
4153403a8b
commit
747da6772d
1 changed files with 5 additions and 10 deletions
|
@ -121,15 +121,10 @@ module.exports = {
|
||||||
inject: false
|
inject: false
|
||||||
}),
|
}),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{
|
|
||||||
context: path.join(__dirname, 'node_modules/mathjax'),
|
|
||||||
from: 'MathJax.js',
|
|
||||||
to: 'MathJax/'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
context: path.join(__dirname, 'node_modules/mathjax'),
|
context: path.join(__dirname, 'node_modules/mathjax'),
|
||||||
from: {
|
from: {
|
||||||
glob: 'config/**/*.js',
|
glob: '**/*',
|
||||||
dot: false
|
dot: false
|
||||||
},
|
},
|
||||||
to: 'MathJax/'
|
to: 'MathJax/'
|
||||||
|
@ -145,22 +140,22 @@ module.exports = {
|
||||||
{
|
{
|
||||||
context: path.join(__dirname, 'node_modules/reveal.js'),
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
||||||
from: 'js',
|
from: 'js',
|
||||||
to: 'reveal.js/'
|
to: 'reveal.js/js'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
context: path.join(__dirname, 'node_modules/reveal.js'),
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
||||||
from: 'css',
|
from: 'css',
|
||||||
to: 'reveal.js/'
|
to: 'reveal.js/css'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
context: path.join(__dirname, 'node_modules/reveal.js'),
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
||||||
from: 'lib',
|
from: 'lib',
|
||||||
to: 'reveal.js/'
|
to: 'reveal.js/lib'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
context: path.join(__dirname, 'node_modules/reveal.js'),
|
context: path.join(__dirname, 'node_modules/reveal.js'),
|
||||||
from: 'plugin',
|
from: 'plugin',
|
||||||
to: 'reveal.js/'
|
to: 'reveal.js/plugin'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue