mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-11-04 11:57:17 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			632 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			632 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$/)
 | 
						|
      .type("asset/source");
 | 
						|
 | 
						|
    config.plugin("define").tap(([options]) => [
 | 
						|
      {
 | 
						|
        ...options,
 | 
						|
        __CSP__: "false"
 | 
						|
      }
 | 
						|
    ]);
 | 
						|
  },
 | 
						|
  devServer: {
 | 
						|
    allowedHosts: "all"
 | 
						|
  }
 | 
						|
};
 |