define-constant-plugin

1.0.2 • Public • Published

DefineConstantPlugin

With this plugin, you can use something like DefinePlugin.runtimeValue in Webpack3.

Install

npm i --save-dev define-constant-plugin

Usage

webpack.config.js

const DefineConstantPlugin = require('define-constant-plugin')

module.exports = {
  entry: 'index.js',
  plugins: [
    new DefineConstantPlugin({
      'process.env':  DefineConstantPlugin.runtimeValue(Date.now, {
        fileDependencies: [fileDep],
      })
    })
  ],
}

Package Sidebar

Install

npm i define-constant-plugin

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

7.23 kB

Total Files

4

Last publish

Collaborators

  • makedopamine