Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return apiOptions.map(options => {
const api = Neutrino(options)
// Register built in commands
api.register('start', start)
api.register('build', build)
api.register('inspect', inspect)
api.register('test', test)
// Require and use all configured middlewares.
args.middleware.forEach(middleware => api.use(middleware))
return api
})
}
module.exports = on => {
const options = webpackPreprocessor.defaultOptions;
const olProvider = new webpack.ProvidePlugin({ ol: "openlayers" });
options.webpackOptions.plugins = [olProvider];
const config = Neutrino().use('.neutrinorc.js').config.toConfig();
options.webpackOptions.module.rules.push(...config.module.rules);
on("file:preprocessor", webpackPreprocessor(options));
};
const { Neutrino } = require('neutrino');
module.exports = Neutrino()
.use('.neutrinorc.js')
.call('eslintrc');