preact-cli-lodash

Minify your build when using lodash and preact-cli

MIT License

Downloads
13
Stars
7
Committers
2

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