Commit e0be1397 authored by JC Brand's avatar JC Brand

Update copy-webpack-plugin to version 6.0.2

parent 73d33e11
This diff is collapsed.
...@@ -18,17 +18,19 @@ module.exports = merge(common, { ...@@ -18,17 +18,19 @@ module.exports = merge(common, {
cleanStaleWebpackAssets: false // resolves conflict with CopyWebpackPlugin cleanStaleWebpackAssets: false // resolves conflict with CopyWebpackPlugin
}), }),
new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}), new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}),
new CopyWebpackPlugin([ new CopyWebpackPlugin({
{from: 'sounds', to: 'sounds'}, patterns: [
{from: 'node_modules/@fortawesome/fontawesome-free/sprites/solid.svg', to: '@fortawesome/fontawesome-free/sprites/solid.svg'}, {from: 'sounds', to: 'sounds'},
{from: 'images/favicon.ico', to: 'images/favicon.ico'}, {from: 'node_modules/@fortawesome/fontawesome-free/sprites/solid.svg', to: '@fortawesome/fontawesome-free/sprites/solid.svg'},
{from: 'images/custom_emojis', to: 'images/custom_emojis'}, {from: 'images/favicon.ico', to: 'images/favicon.ico'},
{from: 'logo/conversejs-filled-192.png', to: 'images/logo'}, {from: 'images/custom_emojis', to: 'images/custom_emojis'},
{from: 'logo/conversejs-filled-512.png', to: 'images/logo'}, {from: 'logo/conversejs-filled-192.png', to: 'images/logo'},
{from: 'logo/conversejs-filled-192.svg', to: 'images/logo'}, {from: 'logo/conversejs-filled-512.png', to: 'images/logo'},
{from: 'logo/conversejs-filled-512.svg', to: 'images/logo'}, {from: 'logo/conversejs-filled-192.svg', to: 'images/logo'},
{from: 'sass/webfonts', to: 'webfonts'} {from: 'logo/conversejs-filled-512.svg', to: 'images/logo'},
]), {from: 'sass/webfonts', to: 'webfonts'}
]
}),
new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code
'process.env.ASSET_PATH': JSON.stringify(ASSET_PATH) 'process.env.ASSET_PATH': JSON.stringify(ASSET_PATH)
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment