|
@@ -1,11 +1,9 @@
|
|
|
/* global __dirname, module, process */
|
|
|
-const ASSET_PATH = process.env.ASSET_PATH || '/dist/'; // eslint-disable-line no-process-env
|
|
|
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
const common = require("./webpack.common.js");
|
|
|
const path = require('path');
|
|
|
-const webpack = require('webpack');
|
|
|
const { merge } = require("webpack-merge");
|
|
|
|
|
|
const plugins = [
|
|
@@ -26,9 +24,6 @@ const plugins = [
|
|
|
{from: 'src/shared/styles/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)
|
|
|
- }),
|
|
|
new CircularDependencyPlugin({
|
|
|
exclude: /node_modules/,
|
|
|
failOnError: true,
|
|
@@ -44,7 +39,6 @@ module.exports = merge(common, {
|
|
|
"converse.min": path.resolve(__dirname, "../src/entry.js"),
|
|
|
},
|
|
|
output: {
|
|
|
- publicPath: ASSET_PATH,
|
|
|
filename: "[name].js",
|
|
|
},
|
|
|
mode: "production",
|