|
@@ -4,11 +4,8 @@ const prod = require("./webpack.prod.js");
|
|
const webpack = require('webpack');
|
|
const webpack = require('webpack');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
|
|
|
-const ASSET_PATH = process.env.ASSET_PATH || '/dist/'; // eslint-disable-line no-process-env
|
|
|
|
-
|
|
|
|
module.exports = merge(prod, {
|
|
module.exports = merge(prod, {
|
|
output: {
|
|
output: {
|
|
- publicPath: ASSET_PATH,
|
|
|
|
filename: 'converse.js',
|
|
filename: 'converse.js',
|
|
},
|
|
},
|
|
optimization: {
|
|
optimization: {
|
|
@@ -17,8 +14,5 @@ module.exports = merge(prod, {
|
|
devtool: 'source-map',
|
|
devtool: 'source-map',
|
|
plugins: [
|
|
plugins: [
|
|
new MiniCssExtractPlugin({filename: '../dist/converse.css'}),
|
|
new MiniCssExtractPlugin({filename: '../dist/converse.css'}),
|
|
- 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)
|
|
|
|
- })
|
|
|
|
],
|
|
],
|
|
});
|
|
});
|