Files
liberama/build/webpack.prod.config.js
2018-12-28 21:47:33 +07:00

31 lines
723 B
JavaScript

const path = require("path");
const webpack = require("webpack");
const merge = require("webpack-merge");
const baseWpConfig = require("./webpack.base.config");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = merge(baseWpConfig, {
mode: 'production',
module: {
rules: [
{
test: /\.vue$/,
loader: "vue-loader",
},
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader'
]
}
]
},
plugins: [
new MiniCssExtractPlugin({
filename: "[name].css"
})
]
});