vue3-h5-quark-template/build/webpack.dev.conf.js
2020-05-22 16:39:43 +08:00

20 lines
451 B
JavaScript

const merge = require("webpack-merge");
const path = require("path");
const baseConfig = require("./webpack.base.conf");
module.exports = merge(baseConfig, {
mode: "development",
devtool: "inline-source-map",
module: {
rules: [
{
test: /\.css$/,
use: ["vue-style-loader", "css-loader", "postcss-loader"],
},
],
},
devServer: {
contentBase: path.resolve(__dirname, "../dist"),
open: true,
},
});