preact-cli-lodash

1.1.0 • Public • Published

preact-cli-lodash

Minify build when using lodash and preact-cli

Getting Started

Install it via npm:

npm install preact-cli-lodash

yarn:

yarn add preact-cli-lodash --dev

This will install:

And include in your project by creating a preact.config.js

const preactCliLodash = require('preact-cli-lodash');
 
export default function (config) {
    preactCliLodash(config);
}

Arguments

If you want to pass options to the lodash-webpack-plugin you can as the second argument of the preactCliLodash function like so:

const preactCliLodash = require('preact-cli-lodash');
 
export default function (config) {
    preactCliLodash(config, {
    'collections': true,
    'paths': true
  });
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i preact-cli-lodash

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • saravieira