2020-04-20 13:36:55 +08:00
|
|
|
/** @type {import("../../../").Configuration} */
|
2016-11-28 21:35:12 +08:00
|
|
|
module.exports = {
|
2017-11-21 17:41:01 +08:00
|
|
|
mode: "production",
|
2016-11-28 21:35:12 +08:00
|
|
|
entry: "./index",
|
|
|
|
|
output: {
|
|
|
|
|
filename: "bundle.js"
|
|
|
|
|
},
|
|
|
|
|
stats: {
|
2018-02-25 09:00:20 +08:00
|
|
|
excludeModules: ["node_modules", "exclude"],
|
|
|
|
|
excludeAssets: [/\.json/]
|
2016-11-28 21:35:12 +08:00
|
|
|
},
|
|
|
|
|
module: {
|
2018-02-25 09:00:20 +08:00
|
|
|
rules: [
|
|
|
|
|
{
|
|
|
|
|
test: /\.txt/,
|
|
|
|
|
loader: "raw-loader"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
test: /\.json/,
|
|
|
|
|
loader: "file-loader",
|
|
|
|
|
type: "javascript/auto"
|
|
|
|
|
}
|
|
|
|
|
]
|
2016-11-28 21:35:12 +08:00
|
|
|
}
|
|
|
|
|
};
|