mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
35 lines
625 B
JavaScript
35 lines
625 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
import nested from "postcss-nested";
|
|
|
|
export default {
|
|
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$/)
|
|
.type("asset/source");
|
|
|
|
config.plugin("define").tap(([options]) => [
|
|
{
|
|
...options,
|
|
__CSP__: "false"
|
|
}
|
|
]);
|
|
},
|
|
devServer: {
|
|
allowedHosts: "all"
|
|
}
|
|
};
|