1.0.1 • Published 5 years ago

webpack-bundle-less-plugin v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

webpack-bundle-less-plugin

Bundle less file and output to html file

Getting Started

npm install webpack-bundle-less-plugin

webpack.config.js

const WebpackBundleLessPlugin = require("webpack-bundle-less-plugin");
moduel.exports = {
  plugin: [
    new WebpackBundleLessPlugin({
      source: path.resolve(process.cwd(), "/node_modules/antd/dist/antd.less")
    })
  ]
};

options

  1. source: the less file absolute path
  2. indexFileName: HtmlWebpackPlugin.fileName
  3. lessUrl: less.js cdn url
1.0.1

5 years ago

1.0.0

5 years ago