@sho-js/build-copyright
v1.1.6
Published
Build Copyright declarations
Downloads
1
Readme
Build Copyright
Purpose: for internal usage.
Install
npm i @sho-js/build-copyright@^1.1
Usage
Auto-configure Webpack
import * as bc from "@sho-js/build-copyright/webpack";
// webpack.config.js
const configuration = {
entry: ["./src/index.js"],
plugins: [
// your plugins here
],
};
return bc.webpack.append(
configuration,
/**
* Module with application name, version and feedback link,
* may be `package.json` etc.
*/
"meta.json"
);
Manual set up
Add webpack.EnvironmentPlugin to set-up
import * as bc from "@sho-js/build-copyright/webpack";
// webpack.config.js
return {
entry: [bc.webpack.getEntry(), "./src/index.js"],
plugins: [
new bc.webpack.EnvironmentPlugin(
"meta.json" // module with application name, version and feedback link
),
// ... other plugins
]
};