@sho-js/build-copyright
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sho-js/build-copyright

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

16.5 kB

Total Files

28

Last publish

Collaborators

  • horat1us
  • sashabeton