mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-08 07:07:15 +02:00
Fix the build
This commit is contained in:
@@ -3,8 +3,13 @@ const path = require('path');
|
||||
module.exports = {
|
||||
entry: './client/index.jsx',
|
||||
output: {
|
||||
path: path.join(__dirname, 'dist'),
|
||||
path: path.join(__dirname, 'build'),
|
||||
filename: 'bundle.js',
|
||||
// It's very important
|
||||
// All the chunk generated by webpack then will be loaded such as
|
||||
// <script charset="utf-8" src="/[chunk-name].bundle.js"></script>
|
||||
// The script is accessible from any page that exported by a 3rd party such as react-snap
|
||||
publicPath: '/',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
@@ -24,7 +29,7 @@ module.exports = {
|
||||
},
|
||||
devtool: 'cheap-module-eavl-source-map',
|
||||
devServer: {
|
||||
contentBase: path.join(__dirname, 'dist'),
|
||||
contentBase: path.join(__dirname, 'build'),
|
||||
historyApiFallback: true,
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user