Брать меньше 16 гигов оперы - бред
module.exports = [
{
test: /\.js|jsx?$/,
exclude: /(node_modules|bower_components|public\/)/,
loader: 'babel-loader',
},
{
test: /\.css$/,
loaders: ['style-loader', 'css-loader?importLoaders=1', 'postcss-loader'],
exclude: ['node_modules'],
},
{
test: /\.(jpg|png|gif|svg|ttf|eot|woff|woff2|otf)$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'file-loader',
options: {
name: '[path][name].[ext]',
},
},
},
]
{
"presets": ["env", "react"],
"plugins": [
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread",
[
"module-resolver",
{
"root": ["./src"],
"alias": {
"styles": "./styles"
}
}
]
],
"env": {
"test": {
"plugins": [
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread"
]
}
}
}