vue.config.js 912 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. //Solution For Issue:You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
  3. //zhengkai.blog.csdn.net
  4. runtimeCompiler: true,
  5. configureWebpack: (config) => {
  6. config["performance"] = {
  7. "maxEntrypointSize": 10000000,
  8. "maxAssetSize": 30000000,
  9. }
  10. },
  11. chainWebpack: config => {
  12. config
  13. .plugin('html')
  14. .tap(args => {
  15. //args[0].title= '' // 设置title
  16. return args
  17. })
  18. },
  19. css: {
  20. loaderOptions: {
  21. less: {
  22. modifyVars: {
  23. //在此处设置,也可以设置直角、边框色、字体大小等
  24. 'primary-color': '#07C160',
  25. },
  26. javascriptEnabled: true
  27. }
  28. }
  29. },
  30. }