fix(client): prevent endless SASS conversion

This commit is contained in:
Valeriy
2018-11-11 16:49:20 +03:00
committed by Stuart Taylor
parent 39e936bbaa
commit ecadba95db
7 changed files with 77 additions and 34 deletions

View File

@@ -4,10 +4,12 @@ module.exports = (env = {}) => {
const __DEV__ = env.production !== true;
return {
mode: __DEV__ ? 'development' : 'production',
entry: './src/client/frame-runner.js',
entry: {
'frame-runner': './src/client/frame-runner.js',
sass: './src/client/workers/sass.js'
},
devtool: __DEV__ ? 'inline-source-map' : 'source-map',
output: {
filename: 'frame-runner.js',
path: path.join(__dirname, './static/js')
},
stats: {