2019-09-30 13:51:46 -07:00
|
|
|
const common = require("./webpack.common");
|
|
|
|
const merge = require("webpack-merge");
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: "production",
|
2019-09-30 16:58:05 -07:00
|
|
|
module: {
|
|
|
|
rules: [
|
2020-02-28 06:36:42 -07:00
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2020-04-04 09:40:40 -07:00
|
|
|
exclude: /node_modules[\\/](?!query-string)/,
|
2020-02-28 06:36:42 -07:00
|
|
|
loader: "babel-loader"
|
|
|
|
},
|
2019-09-30 16:58:05 -07:00
|
|
|
{
|
|
|
|
test: /\.css$/i,
|
2020-02-28 06:36:42 -07:00
|
|
|
use: ["style-loader", "css-loader", "postcss-loader"]
|
2019-09-30 16:58:05 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(png|jpg|gif)$/i,
|
|
|
|
use: ["file-loader"]
|
2020-01-19 04:57:09 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
|
|
use: [
|
|
|
|
'file-loader',
|
|
|
|
]
|
2019-09-30 16:58:05 -07:00
|
|
|
}
|
|
|
|
]
|
2020-01-19 03:52:19 -07:00
|
|
|
}
|
2019-09-30 13:51:46 -07:00
|
|
|
});
|