lmislm / lmislm.github.io

hexo的配置
0 stars 0 forks source link

How to create a Single Entry JS File for VueJS #13

Open lmislm opened 9 months ago

lmislm commented 9 months ago
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    extract: false,
  },
  configureWebpack: {
    output: {
      filename: "workspace.js",
    },
    optimization: {
      splitChunks: false,
    },
  },
});

if you import vue file in router, it will force splitchunk.