Last active
March 13, 2017 20:52
-
-
Save z81/9ebb8ba6b558a8accdd2e7bb5bd281c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
"scripts": { | |
"build": "neo build --config webpack.prod.js", | |
"start": "neo start --port 3001 --config webpack.dev.js", | |
// ... | |
} | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const devConfig = require('mozilla-neo/config/webpack.dev'); | |
devConfig.devtool = 'cheap-inline-source-map'; | |
devConfig.devServer.host = '0.0.0.0'; | |
devConfig.devServer.contentBase = 'build'; | |
//fix svg | |
devConfig.module.preLoaders = []; //del eslint | |
devConfig.module.loaders[7].query.mimetype = 'image/svg+xml'; | |
module.exports = devConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const devConfig = require('mozilla-neo/config/webpack.prod.js'); | |
// disable eslint | |
devConfig.module.preLoaders = []; | |
// fix svg | |
devConfig.module.loaders[7].query.mimetype = 'image/svg+xml'; | |
// remove clean | |
devConfig.plugins = [ | |
devConfig.plugins[0], | |
devConfig.plugins[1], | |
devConfig.plugins[2], | |
devConfig.plugins[4] | |
]; | |
module.exports = devConfig; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment