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