1.1.6 • Published 4 years ago

@sho-js/build-copyright v1.1.6

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

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
    ]
};

License

MIT

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago