vue-cli-plugin-vite
vue-cli-plugin-vite copied to clipboard
Use vite today, with vue-cli.
> node_modules/memoizee/normalizers/get-1.js:3:22: error: Could not read from file: /Applications/project/brainpp/projects/portal/node_modules/es5-ext/array/index.js#/e-index-of 3 │ var indexOf = require("es5-ext/array/#/e-index-of"); ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > node_modules/d/index.js:7:30: error: Could not read from file: /Applications/project/brainpp/projects/portal/node_modules/es5-ext/string/index.js#/contains 7 │ , contains...
``` export default { configureWebpack: { plugins: plugins, resolve: { alias: {}, extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"], symlinks: true, preserveSymlinks: true, dedupe: true, }, }, pluginOptions: {...
chrome报错如下: `Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts...
run `npm run vite ` before vite output `ready in xxxx ms` `Loading Vetur in workspace path: D:\code\node\xxxDemo` `DeprecationWarning: 'createIdentifier' has been deprecated since v4.0.0. Use the appropriate method on...
if you find some problems, please first read the [FAQ](https://github.com/IndexXuan/vue-cli-plugin-vite/issues/9)  if you want some new feature, please know this plugin aims to let codebase work both in vite and...
代码: ``` configureWebpack(webpackConfig) { if (process.env.NO_CHUNK === 'false' || !disableDynamicImport) { // 配置第三方依赖包入口 webpackConfig.entry.vendor = Object.keys(packageJson.dependencies); // 获取生产环境依赖库 // 配置 chunk 输出的文件命名格 webpackConfig.output.chunkFilename = fileName; } Object.assign(webpackConfig, { entry: {...