Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
hopsConfig.workerFile && {
'hops-worker-entry-point': hopsConfig.workerFile,
}
),
mainFields: [
'esnext:' + platform,
'jsnext:' + platform,
platform,
'esnext',
'jsnext',
'esnext:main',
'jsnext:main',
'main',
],
modules: ['node_modules'].concat(hopsConfig.moduleDirs),
extensions: ['.js', '.jsx'],
};
};
var cssLoaderGlobalOptions = {
importLoaders: 1,
sourceMap: true,
};
var cssLoaderLocalOptions = Object.assign({}, cssLoaderGlobalOptions, {
modules: true,
localIdentName: '[folder]-[name]-[local]-[hash:8]',
});
var postcssLoaderOptions = {
ident: 'postcss',
plugins: [
require('postcss-import')({
addModulesDirectories: [].concat(hopsConfig.moduleDirs),
}),
require('postcss-cssnext')({
browsers: hopsConfig.browsers,
}),
],
};
exports.build = {
test: /\.css$/,
oneOf: [
{
resourceQuery: /global/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{