mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-11-04 11:57:17 +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");
 | 
						|
  }
 | 
						|
};
 |