Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
Convert Less to Css in Webpack

In my webpack app I need to convert less files into css files. The converted css files I need to put in a public folder. Here is what I have tried:

{
                test: /\.less$/,
                use: [{loader: 'file-loader', options: {name: "public/[name].css"}},{
                    loader: MiniCssExtractPlugin.loader,
                    
                }, 'css-loader', {loader: 'less-loader', options: { lessOptions: { javascriptEnabled: true } } }]
            },

I tried converting the css-loader into plain css text using MiniCssExtractPlugin and store the file in a public folder on my app. The reason for this is because I need to access these css files in my index.html file to style a custom theme library.

Maybe Im using the file-loader wrong I am not sure :(

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!