Html Webpack Dotnet Versionize Plugin
A plugin for webpack-html-plugin to add .net framework's ToVersionizeSC() method to the scripts and styles
Useful when you create .cshtml file instead of .html file with html-webpack-plugin.
Configuration
- Install via
npm i -D html-webpack-dotnet-versionize-plugin
oryarn add -D html-webpack-dotnet-versionize-plugin
- Add to your webpack config AFTER HtmlWebpackPlugin
const HtmlWebpackDotnetVersionizePlugin = ; ... plugins: filename: path template: path minify: false
Sample Output
Webpack App
Testing
I'm planning to write test in future. Currently you can test the plugin manually.
Install npm packages then run npm run test:build
. You can see result in test/index.html file.