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 11 months ago

lmislm commented 11 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.