mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
Only copy needed files in webpack
This commit is contained in:
parent
0bea4da623
commit
cd91f237ab
1 changed files with 22 additions and 5 deletions
|
@ -121,10 +121,15 @@ 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: '**/*',
|
||||
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/'
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue