How to introduce less file into Vue-cli creation project

since vue-cli encountered difficulties in creating the project, I introduced the less file into the style code in the APP.vue file, because I have installed less,less-loader-D , and the result indicates an error.

vue-style-loader -Dcss-loader,style-loader,less,less-loader

vue-cliwebpack.base.conf.js

Mar.22,2021

clipboard.png
these two should also be installed


  1. install less less-loader
  2. set util
return {
    css: generateLoaders(),
    postcss: generateLoaders(),
    less: generateLoaders('less'),
    sass: generateLoaders('sass', { indentedSyntax: true }),
    scss: generateLoaders('sass'),
    stylus: generateLoaders('stylus'),
    styl: generateLoaders('stylus')
  }

is:

return {
    css: generateLoaders(),
    postcss: generateLoaders(),
    less: generateLoaders('less',{ javascriptEnabled: true }),
    sass: generateLoaders('sass', { indentedSyntax: true }),
    scss: generateLoaders('sass'),
    stylus: generateLoaders('stylus'),
    styl: generateLoaders('stylus')
  }

is fine
author vue-cli version 2.9.6

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34e7f-2b6cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34e7f-2b6cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?