| 12345678910111213141516 |
- const webpack = require('webpack')
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- css: {
- extract: false, // 将组件的 style 打包到 js 文件中
- },
- configureWebpack: {
- output: {
- libraryExport: 'default'
- },
- plugins: [
- new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /zh-cn$/)
- ]
- }
- })
|