mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Update copy-webpack-plugin, css-loader, html-webpack-plugin, style-loader, webpack and webpack-cli
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
8cf41ee669
commit
f7fea81c32
3 changed files with 1015 additions and 584 deletions
|
@ -175,7 +175,7 @@
|
|||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"copy-webpack-plugin": "^5.0.5",
|
||||
"copy-webpack-plugin": "^6.0.3",
|
||||
"css-loader": "^3.2.0",
|
||||
"eslint": "^5.9.0",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
|
|
|
@ -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/'
|
||||
},
|
||||
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: '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'
|
||||
}
|
||||
]
|
||||
}),
|
||||
new MiniCssExtractPlugin()
|
||||
],
|
||||
|
||||
|
@ -394,12 +396,12 @@ module.exports = {
|
|||
}, {
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
{
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
options: {
|
||||
{
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
options: {
|
||||
publicPath: '',
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
'css-loader'
|
||||
]
|
||||
}, {
|
||||
|
|
Loading…
Reference in a new issue