E
E
Evgeny Kucherenko2017-01-31 17:35:35
Less
Evgeny Kucherenko, 2017-01-31 17:35:35

How to get rid of .less when building?

When building, a style.less file appears in app.js, which weighs a lot ...
Now there is a loader in the config:

module: {
    loaders: [
      ...
      {
        test: /\.less$/,
        loader: 'style-loader!css-loader!less-loader',
        include: path.join(__dirname, 'app'),
      }
    ]

How to get rid of .less altogether and get minified .css as output?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-01-31
@maxfarseer

Use ExtractTextPlugin ( google , off.doc for 1st version of webpack)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question