define-plugin-plus
v1.0.1
Published
A plugin to implement DefinePlugin.runtimeValue of high version Webpack in Webpack3
Downloads
7
Maintainers
Readme
npm i --save-dev define-plugin-plus
webpack.config.js
const DefinePluginPlus = require('../src/define-plugin-plus.js')
module.exports = {
entry: 'index.js',
plugins: [
new DefinePluginPlus({
'process.env': DefinePluginPlus.runtimeValue(Date.now, {
fileDependencies: [fileDep],
})
})
],
}