vue.config.js 737 B

12345678910111213141516171819202122
  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. css: {
  12. loaderOptions: {
  13. less: {
  14. modifyVars: {
  15. //在此处设置,也可以设置直角、边框色、字体大小等
  16. 'primary-color': '#07C160',
  17. },
  18. javascriptEnabled: true
  19. }
  20. }
  21. },
  22. }