0.0.5 • Published 7 years ago

webpack-entry-hash-plugin v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

webpack-entry-hash-plugin

Modify the target file that references the webpack entry

Usage

module.exports = {
    entry: ['./index.js', './index.html'],
    /*
    entry: {
        index: ['./index.js', './index.html']
    }
    */
    ...
    plugins: {
        new EntryPlugins({
            file: './index.html',
            // or template
            toReplace: 'main.js',
            // optional   toReplace: 'main.js?[name]=index',
            publicPath: 'xxxx.com'
            // optional   template example: {%$data.url%}
        })
    }
    ...
}

options

  • file: the exported destination file
  • toReplace: replacement text
  • publicPath: prefix,instead of the output.publicPath
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago