Commit b26e1c87 authored by JC Brand's avatar JC Brand

webpack: dev server doesn't find webpack.html if we set a public path

parent 63da4b4b
......@@ -5,7 +5,6 @@ const webpack = require('webpack');
module.exports = {
output: {
path: path.resolve(__dirname, 'dist'), // Output path for generated bundles
publicPath: '/dist/', // URL base path for all assets
chunkFilename: '[name].js'
},
entry: path.resolve(__dirname, 'src/converse.js'),
......
......@@ -5,6 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(prod, {
output: {
publicPath: '/dist/', // URL base path for all assets
filename: 'converse.js',
},
optimization: {
......
......@@ -6,6 +6,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
output: {
publicPath: '/dist/', // URL base path for all assets
filename: 'converse.min.js',
},
plugins: [
......
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