fix(learn): remove sass.js from bundle and place it to static/js

This commit is contained in:
Valeriy
2019-01-17 02:49:03 +03:00
committed by mrugesh mohapatra
parent 1c1ccf75d0
commit 44e9ffb6f2
4 changed files with 151 additions and 27 deletions

View File

@ -1,4 +1,5 @@
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = (env = {}) => {
const __DEV__ = env.production !== true;
@ -43,8 +44,10 @@ module.exports = (env = {}) => {
}
]
},
node: {
fs: 'empty'
}
plugins: [
new CopyWebpackPlugin([
{ from: 'node_modules/sass.js/dist/sass.sync.js' }
])
]
};
};