flecks/packages/fleck/build/flecks.hooks.js
2024-01-29 08:15:22 -06:00

14 lines
364 B
JavaScript

export const hooks = {
/**
* Process the `package.json` for a built fleck.
* @param {Object} json The JSON.
* @param {[Compilation](https://webpack.js.org/api/compilation-object/)} compilation The webpack compilation.
* @invoke SequentialAsync
*/
'@flecks/fleck.packageJson': (json, compilation) => {
json.files.push('something');
},
};