diff options
author | David Mehren | 2020-08-20 14:21:06 +0200 |
---|---|---|
committer | GitHub | 2020-08-20 14:21:06 +0200 |
commit | 23d54b8b4b3a9587220c9211d2a92c22609a4de8 (patch) | |
tree | 1b994e6354265d108015526d0b143048c2baf480 /webpack.common.js | |
parent | 8cf41ee669e30d743b2f3cd2056aff10c6778a77 (diff) | |
parent | f7fea81c32249c1fd8df978a43aa0ea19adba201 (diff) |
Merge pull request #469 from codimd/fix/update-webpack
Update Webpack dependencies
Diffstat (limited to '')
-rw-r--r-- | webpack.common.js | 98 |
1 files changed, 50 insertions, 48 deletions
diff --git a/webpack.common.js b/webpack.common.js index dd2280de..9d1a9005 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -129,52 +129,54 @@ module.exports = { filename: path.join(__dirname, 'public/views/build/slide-pack-scripts.ejs'), inject: false }), - new CopyWebpackPlugin([ - { - context: path.join(__dirname, 'node_modules/mathjax/unpacked'), - from: { - glob: '**/*', - dot: false + new CopyWebpackPlugin({ + patterns: [ + { + context: path.join(__dirname, 'node_modules/mathjax/unpacked'), + from: '**/*', + globOptions: { + dot: false + }, + to: 'MathJax/' }, - to: 'MathJax/' - }, - { - context: path.join(__dirname, 'node_modules/mathjax/fonts'), - from: { - glob: '**/*', - dot: false + { + context: path.join(__dirname, 'node_modules/mathjax/fonts'), + from: '**/*', + globOptions: { + dot: false + }, + to: 'fonts/' }, - to: 'fonts/' - }, - { - context: path.join(__dirname, 'node_modules/emojify.js'), - from: { - glob: 'dist/**/*', - dot: false + { + context: path.join(__dirname, 'node_modules/emojify.js'), + from: 'dist/**/*', + globOptions: { + dot: false + }, + to: 'emojify.js/' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'js', + to: 'reveal.js/js' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'css', + to: 'reveal.js/css' + }, + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'lib', + to: 'reveal.js/lib' }, - to: 'emojify.js/' - }, - { - context: path.join(__dirname, 'node_modules/reveal.js'), - from: 'js', - to: 'reveal.js/js' - }, - { - context: path.join(__dirname, 'node_modules/reveal.js'), - from: 'css', - to: 'reveal.js/css' - }, - { - context: path.join(__dirname, 'node_modules/reveal.js'), - from: 'lib', - to: 'reveal.js/lib' - }, - { - context: path.join(__dirname, 'node_modules/reveal.js'), - from: 'plugin', - to: 'reveal.js/plugin' - } - ]), + { + context: path.join(__dirname, 'node_modules/reveal.js'), + from: 'plugin', + to: 'reveal.js/plugin' + } + ] + }), new MiniCssExtractPlugin() ], @@ -394,12 +396,12 @@ module.exports = { }, { test: /\.css$/, use: [ - { - loader: MiniCssExtractPlugin.loader, - options: { + { + loader: MiniCssExtractPlugin.loader, + options: { publicPath: '', - } - }, + } + }, 'css-loader' ] }, { |