53 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
20
views
Optional imports with less-loader in Webpack
We migrate from Gulp to Webpack (and from JS to TS) and we have some conditional less imports so:
@import (optional)
This worked without any issues before and just used the style, when available. Now ...
0
votes
1
answer
144
views
webpack less packaging result cache occasionally fails
When I upgrade webpack4.x to 5.88.1, I use the cache function of webpack to improve the build speed.
But in some cases that cannot be reproduced stably, there will be errors in the less compiled code ...
0
votes
2
answers
342
views
Nuxt2 css (.less) build changes class names in css
I've got a Nuxt2 app, the problem is that after the build all the class names are changed to unique ids, but only in the css not in html, so obviously it doesn't work. I've read about putting every ...
1
vote
1
answer
273
views
Add wrapper class to less files using webpack
I am using webpack v5.74.0.
I want to add a custom class to all CSS rules at build time using webpack. Example for reference
.input-text {color: red}
should become
.container .input-text {color: red}
...
1
vote
0
answers
187
views
Unrecognized input on Ant design vue
While trying to run the newly created Vue 3 application with Ant design Vue (3.1.0-RC.0) framework, I'm getting unrecognized input error. Vue configurations are not at all changed. Trying to run with ...
1
vote
1
answer
2k
views
How to add less-loader to react-app-rewired config?
I am using react-app-rewired and I want to add the less-loader to the config-overides.js but it doesn't work,
I tried with
module.exports = {
module: {
rules: [
{
test: /\.less$/i,
...
2
votes
1
answer
729
views
How to load fonts from LESS file with Webpack 5?
I am using Webpack 5 and loading fonts and other styles from a .less file. However, the fonts/styles do not seem to be loading, and I'm trying to figure out why.
bootstrap.less
@import (less) '~...
2
votes
2
answers
4k
views
Error evaluating function `ceil`: argument must be a number
On OSX, after I installed all of dependencies by yarn install, The webpack bundle's output keeps showing the error Error evaluating function ceil: argument must be a number.
I have no idea why this ...
1
vote
0
answers
143
views
use less in html inline style
Is it possible to setup webpack, that I could use less in my html templates like:
// xy.html
<style type="text/less">
color: @myColor;
</style>
Currently the css/less part ...
2
votes
1
answer
2k
views
Antd Import on Demand get error: Variable @import is undefined by less-loader
I want to config antd Import on Demand.But I get the error: Variable @import is undefined
The error screenshots
Why less parse @import as a variable?
This is my package.json:
"dependencies": ...
0
votes
1
answer
2k
views
How to fix a broken vuejs project after adding "less" and "less-loader" module
I had recently created a simple vuejs project using IntelliJ and wanted to start using less with it. But after running "npm install -D less less-loader" I'm getting an error and I'm unable ...
0
votes
1
answer
350
views
Can't install less-loader in VueCLI3 project
Some pages of my project use less to render,so I run the npm command to install less and less-loader but find just less can successfully installed,for unknown reason, the less-loader keep falied to ...
1
vote
0
answers
320
views
Laravel Mix "Unrecognised input" in Vue components
After upgrade webpack from verstion 3 to 5 I get error with inline load styles.
✖ Mix
Compiled with some errors in 2.29s
ERROR in ./app/Admin/assets/partials/bootstrapForm/ImageSelector.vue?vue&...
2
votes
1
answer
5k
views
How to resolve yarn warnings
I created a new project with the vue cli.
This project is a Vue3 with Ant Design, Vue Router and Eslint.
However when I give the yarn command it shows me the following warnings.
yarn install v1.22.10
[...
6
votes
1
answer
1k
views
webpack.config.js not setting global less variable
Any idea of why this webpack.config.js is not setting the global LESS variable: current-vehicle defined on: /resources/scripts/theme.js?
/webpack.config.js
const merge = require("webpack-merge&...