1.1.0 • Published 7 years ago

preact-cli-lodash v1.1.0

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

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

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago