This package has been deprecated

Author message:

This package is unmaintained and for reference only, please use the native tools instead

build-tools-webpack-less

1.2.0 • Public • Published

npm version

build-tools-webpack-less

Set of tools and utilities to work with webpack and Less.

Install

npm install --save-dev build-tools-webpack-less

Usage

In webpack.config.js:

const { rules: lessRules } = require('build-tools-webpack-less');
 
module.exports = {
  module: {
    rules: [
      ...lessRules,
      ... // other loaders
    ]
  }
};

To allow extraction of CSS in production, set NODE_ENV=production and adjust webpack.config.js:

const {
  rules: lessRules,
  plugin: lessExtractPlugin 
= require('build-tools-webpack-less/extract');
 
module.exports = {
  module: {
    rules: [
      ...lessRules,
      ... // other loaders
    ]
  },
  plugins: [
    lessExtractPlugin
  ]
};

Links

/build-tools-webpack-less/

    Package Sidebar

    Install

    npm i build-tools-webpack-less

    Weekly Downloads

    36

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    3.87 kB

    Total Files

    6

    Last publish

    Collaborators

    • adidas