Skip to content

Instantly share code, notes, and snippets.

@z81

z81/package.json

Last active Mar 13, 2017
Embed
What would you like to do?
// ...
"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
You can’t perform that action at this time.