1.1.1 • Published 7 years ago

tronic-plugin-less v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

tronic-plugin-less

LESS plugin for tronic with predefined defaults

Getting started

Install with npm:

npm install --save-dev tronic-plugin-less

Setup

Create a tronic.config.js file at the root of your project with the following content:

module.exports = {
  plugins: [
    'tronic-plugin-less'
  ]
}

Configuration

You may configure the plugin using any of the options available for style-loader, css-loader, resolve-url-loader, postcss-loader and less-loader. The options you specify will be merged with the defaults, so there's no need to redefine existing properties.

You can do so as below:

module.exports = {
  plugins: [
    {
      name: 'tronic-plugin-less',
      options: {
        styleLoader: {
          sourceMap: false
        },
        cssLoader: {
          sourceMap: false
        },
        resolveUrlLoader: {
          sourceMap: false
        },
        postcssLoader: {
          sourceMap: false
        },
        lessLoader: {
          sourceMap: false
        }
      }
    }
  ]
}