mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
26 lines
494 B
JavaScript
26 lines
494 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const nested = require("postcss-nested");
|
|
|
|
module.exports = {
|
|
outputDir: "demo",
|
|
css: {
|
|
loaderOptions: {
|
|
postcss: {
|
|
postcssOptions: {
|
|
plugins: [nested()]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
chainWebpack: config => {
|
|
config.entry("app").clear().add("./src/demo/main.ts");
|
|
|
|
config.module
|
|
.rule("svg")
|
|
.clear()
|
|
.test(/\.svg$/)
|
|
.use("raw-loader")
|
|
.loader("raw-loader");
|
|
}
|
|
};
|