fix(learn): remove sass.js from bundle and place it to static/js
This commit is contained in:
committed by
mrugesh mohapatra
parent
1c1ccf75d0
commit
44e9ffb6f2
@ -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' }
|
||||
])
|
||||
]
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user