preact-cli-lodash
v1.1.0
Published
Minify build when using lodash and preact-cli
Downloads
140
Readme
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