1. Install less dependency: 2. Modify the webpack.base.config.js file, configure the loader to load dependencies, make it support external less, and add to the original code // This method displays the style tag style in the console { test: /\.less$/, loader: "style-loader!css-loader!less-loader", options: { sourceMap: true } //You can see in the console which less file the current tag style comes from} 3. Use in the project Add lang="less" to the style tag in the vue file to use less in the tag, or import less externally Problems encountered: Cause: The installed version of less-loader is too high. Solution:
Or just modify the version number in the package.json file and then npm install This is the end of this article about the use of less in vue. For more relevant content on the use of vue less, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: About the IE label LI text wrapping problem
>>: Complete steps for deploying confluence with docker
Nginx, pronounced "engine x," is an ope...
Table of contents 1. Problem scenario 2. Cause An...
1. Background execution Generally, programs on Li...
The usage format of the mysqladmin tool is: mysql...
This article describes how to install mysql5.6 us...
<br />Sometimes you may be asked questions l...
This article mainly introduces the sample code of...
html, address,blockquote,body, dd, div,dl, dt, fie...
Table of contents Preface 1. Array traversal meth...
The information on Baidu is so diverse that it...
1. Built-in functions 1. Mathematical functions r...
Let me tell you about a recent case. A game log l...
Mybatis paging plug-in pageHelper detailed explan...
Effect display The built-in boot interface is too...
In web page production, input and img are often pl...