2019-09-30 13:51:46 -07:00
|
|
|
const path = require("path");
|
|
|
|
const common = require("./webpack.common");
|
|
|
|
const merge = require("webpack-merge");
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: "production",
|
|
|
|
output: {
|
2019-09-30 16:58:05 -07:00
|
|
|
filename: "bundle.js",
|
|
|
|
path: path.resolve(__dirname, "dist"),
|
|
|
|
libraryTarget: "amd-require"
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/i,
|
2020-01-09 11:40:23 -07:00
|
|
|
use: ["style-loader", "css-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
|
|
|
});
|