|
@@ -4,7 +4,7 @@ const merge = require("webpack-merge");
|
|
|
const path = require('path');
|
|
|
const webpack = require('webpack');
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
-const CopyPlugin = require('copy-webpack-plugin');
|
|
|
+const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
|
|
|
const ASSET_PATH = process.env.ASSET_PATH || '/dist/'; // eslint-disable-line no-process-env
|
|
|
|
|
@@ -15,7 +15,11 @@ module.exports = merge(common, {
|
|
|
},
|
|
|
plugins: [
|
|
|
new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}),
|
|
|
- new CopyPlugin([{from: 'images/favicon.ico'}]),
|
|
|
+ new CopyWebpackPlugin([
|
|
|
+ {from: 'images/favicon.ico'},
|
|
|
+ {from: 'images/custom_emojis', to: 'custom_emojis'},
|
|
|
+ {from: 'sass/webfonts', to: 'webfonts'}
|
|
|
+ ]),
|
|
|
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)
|
|
|
})
|