[New Feature] Apply graph strategy

This commit is contained in:
Qolzam
2018-01-12 13:40:59 +07:00
parent 7231c59f92
commit e38dbc9fd3
169 changed files with 2931 additions and 2580 deletions

View File

@@ -12,12 +12,16 @@ try {
} catch (e) {
}
const devEntry = [
'react-hot-loader/patch',
'webpack-hot-middleware/client',
'./src/index.tsx'
];
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack-hot-middleware/client',
'./src/index.tsx'
],
entry: (process.env.NODE_ENV === 'production') ? ['./src/index.tsx'] : devEntry,
externals: {
jquery: 'jQuery'
},
@@ -60,7 +64,7 @@ module.exports = {
output: {
publicPath: '/',
path: path.resolve(__dirname, './public'),
filename: 'bundle-v0.3.js',
filename: 'bundle-v0.5.js',
},
resolve: {