summaryrefslogtreecommitdiff
path: root/webpack.common.js
diff options
context:
space:
mode:
authorDavid Mehren2020-08-13 21:49:34 +0200
committerDavid Mehren2020-08-19 19:40:17 +0200
commitf7fea81c32249c1fd8df978a43aa0ea19adba201 (patch)
tree1b994e6354265d108015526d0b143048c2baf480 /webpack.common.js
parent8cf41ee669e30d743b2f3cd2056aff10c6778a77 (diff)
Update copy-webpack-plugin, css-loader, html-webpack-plugin, style-loader, webpack and webpack-cli
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js98
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'
]
}, {