Push changes up to switch PCs

This commit is contained in:
dannyrb committed 2019-07-11 13:12:37 -04:00
1 parent c05058a0f5
commit 2fbbb4a8e2
10 files changed
+195 -144

No files matched your search

+11 -6
View File
@@ -5,6 +5,7 @@ const common = require('./webpack.common');
const SRC_DIR = path.join(__dirname, '../src');
const DIST_DIR = path.join(__dirname, '../dist');
const INDEX = path.join(DIST_DIR, 'index.html');
module.exports = (env, argv) => {
const commonConfig = common(env, argv);
@@ -14,8 +15,8 @@ module.exports = (env, argv) => {
devtool: 'cheap-module-source-map',
output: {
path: DIST_DIR,
filename: 'bundle.js',
publicPath: '/public/',
publicPath: '/',
filename: '[name].bundle.js',
},
module: {
rules: [
@@ -46,12 +47,16 @@ module.exports = (env, argv) => {
},
plugins: [new webpack.HotModuleReplacementPlugin()],
devServer: {
hot: true,
// hot: true,
inline: true,
compress: true,
contentBase: DIST_DIR,
port: 3000,
compress: false,
// contentBase: DIST_DIR,
open: true,
port: 3001,
writeToDisk: true,
historyApiFallback: {
index: '/',
},
},
});
};