Questions tagged [less-loader]

59 questions
1
vote
0 answers

Use different loaders for .scss and .less files

I am using Webpack 3 and CSS Modules. I have a different loaders for ".local.css" and "local.scss" files (local files) and another set of loaders for my global ".css or .less" files. Now I have one more files type, a gloabl ".scss" file. I dont'…
Igor-Vuk
  • 3,551
  • 7
  • 30
  • 65
1
vote
2 answers

Why Bootstrap CSS is being bundled together with Javascript when using MiniCssExtractPlugin?

I'm trying to generate the vendors CSS and Javascript, but something is going wrong. The vendor Css is being included in both Css and Javascript bundle. Here's my webpack configuration: module.exports = (env) => { const optimization = { …
1
vote
1 answer

webpack - "Module parse failed: Unexpected token" when using less-loader without chaining css-loader

I need some help understanding the behavior of webpack less-loader. I'm using webpack 4.5.0. Here is my webpack config: const fs = require('fs'); const path = require('path'); const config = { entry: './src/index.js', mode: 'development', …
Bruce Sun
  • 631
  • 1
  • 10
  • 26
1
vote
1 answer

Webpack 4 Having Trouble with Less

I'm new to using webpack and I'm simply trying to get it to handle both the typescript and less files in a new empty .net core web project, and output the corresponding js and css files to a specified folder. I have managed to get the typescript to…
Will P.
  • 8,437
  • 3
  • 36
  • 45
1
vote
1 answer

Webpack Less-Loader with Style-Loader not injecting