Skip to content

Instantly share code, notes, and snippets.

@z81
Last active March 13, 2017 20:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z81/9ebb8ba6b558a8accdd2e7bb5bd281c2 to your computer and use it in GitHub Desktop.
Save z81/9ebb8ba6b558a8accdd2e7bb5bd281c2 to your computer and use it in GitHub Desktop.
// ...
"scripts": {
"build": "neo build --config webpack.prod.js",
"start": "neo start --port 3001 --config webpack.dev.js",
// ...
}
// ...
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;
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