Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function(config, env) {
var config = genDefaultConfig(config, env);
// Extend it as you need.
config.module.loaders = [...config.module.loaders,
{
test: /\.scss$/,
loaders: ["style", "css", "resolve-url", "sass?sourceMap"],
}
];
config.resolve.extensions = [...config.resolve.extensions, '.scss'];
return config;
};
module.exports = function(config, env) {
var config = genDefaultConfig(config, env);
const loaders = config.module.loaders.map(e => {
if (e.test.toString() === '/\\.css?$/') {
delete e.include;
}
return e;
});
config.module.loaders = loaders;
return config;
};
module.exports = (config, env) => {
config = genDefaultConfig(config, env)
Object.assign(config, {
module: Object.assign(config.module, {
loaders: config.module.loaders.concat([{
test: /\.md$/,
loader: 'html!markdown',
include: path.resolve(__dirname, '../')
}, {
test: /\.html$/,
loader: 'html',
query: {
minimize: true
},
include: path.resolve(__dirname, '../')
}])
}),
module.exports = function(config, env) {
const defaultConfig = genDefaultConfig(config, env);
const withOldPlugin = Object.assign({}, defaultConfig, {
plugins: defaultConfig.plugins.concat([
new webpack.OldWatchingPlugin(),
]),
resolve: Object.assign({}, defaultConfig.resolve, {
alias: Object.assign({}, defaultConfig.resolve.alias, {
bootstrapCss: path.join(
__dirname,
'../stories/bootstrap/v' + bootstrapVersion + '/css/bootstrap.min.css'
),
}),
}),
})
return withOldPlugin;
};
module.exports = function (config, env) {
const newConfig = webpackConfig(config, env)
newConfig.module.preLoaders = (newConfig.module.preLoaders || []).concat({
test: /\.js$/,
include: join(__dirname, '..', 'src'),
loader: 'standard'
})
return newConfig
}
module.exports = function(config, env) {
var config = genDefaultConfig(config, env);
return Object.assign({}, config, {
resolve: Object.assign({}, config.resolve, {
alias: {
electron: path.join(__dirname, "fake/electron.js"),
remote: path.join(__dirname, "fake/electron.js"),
},
}),
});
};