html-webpack-cdn-plugin has 101 recorded weekly downloads on npm, a decrease of 74.9% over the past 30 days, ranking #2625 of 3,247 tracked listings.
About html-webpack-cdn-plugin
Html-webpack-cdn-plugin
cdn in webpack
Useage
Dependencies
cdn-loader You NEAD Install
cdn-loaderandhtml-webpack-plugin
Install
- Run
npm i -D html-webpack-cdn-pluginin your project folder - Add
var HtmlWebpackCdnPlugin = require('html-webpack-cdn-plugin')towebpack.config.jsfile - Add
new HtmlWebpackCdnPlugin(config)towebpack.config.jsfile (plugins) - Also you need cdn-loader and html-webpack-plugin
Support
css and js files https://cdnjs.com
Config
Example
// webpack.config.js
var config = {
host: "https://cdnjs.cloudflare.com/ajax/libs",
cdn: {
js: "https://cdnjs.cloudflare.com/ajax/libs",
css: "https://cdnjs.cloudflare.com/ajax/libs"
}
}
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [
new HtmlWebpackCdnPlugin(config),
new HtmlWebpackPlugin()
]
};
// index.js
var $ = require("cdn?jQuery@3.1.0")
// Now you can use it
$('.app')
require("cdn?normalize@4.2.0&type=css")
// cdn-loader
// .......more code
Then
<!DOCTYPE html>
<html>
<head>
<title>app</title>
<link rel="stylesheet" href="http://cdn.bootcss.com/normalize/4.2.0/normalize.min.css">
</head>
<body>
<div class="app"></div>
<!-- more code -->
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="index_bundle.js"></script>
</html>
Description from the npm listing.
- webpack
- cdn-loader
- webpack-plugin
- html-webpack-plugin
- html-webpack-cdn-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Webpack plugins plugins
All 20 html-webpack-cdn-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/html-webpack-cdn-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.