Gathering detailed insights and metrics for extract-css-assets-webpack-plugin
Gathering detailed insights and metrics for extract-css-assets-webpack-plugin
Gathering detailed insights and metrics for extract-css-assets-webpack-plugin
Gathering detailed insights and metrics for extract-css-assets-webpack-plugin
optimize-css-assets-webpack-plugin
A Webpack plugin to optimize \ minimize CSS assets.
optimize-css-assets-webpack-plugin-temp
A Webpack plugin to optimize \ minimize CSS assets.
eaipsam
The pug plugin to handle the pug, html, css, scss files in webpack entry and extract css from pug.
callisto-mini-css-extract-plugin-optimize-css-assets-webpack-plugin-janus
Adexe Created Npm Publish store to check for the client purpose Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
npm install extract-css-assets-webpack-plugin
Typescript
Module System
Node Version
NPM Version
TypeScript (90.85%)
JavaScript (6.48%)
CSS (1.57%)
EJS (0.92%)
AppleScript (0.18%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
18,547 Stars
3,281 Commits
2,129 Forks
440 Watchers
63 Branches
125 Contributors
Updated on Jul 13, 2025
Latest Version
0.2.10
Package Id
extract-css-assets-webpack-plugin@0.2.10
Unpacked Size
16.51 kB
Size
4.56 kB
File Count
9
NPM Version
6.14.16
Node Version
12.22.12
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
提取 css 文件中网络资源,将其本地化。
outputPath
默认值: ""
提取后的文件目录前缀relativeCssPath
默认值: ""
提取的文件后相对于 css 的路径forceLocal
默认值: false
是否 publicPath 为 http 网络路径时也强制生效1import MiniCssExtractPlugin from 'mini-css-extract-plugin'; 2import ExtractCssAssetsPlugin from 'extract-css-assets-webpack-plugin'; 3 4module.exports = { 5 entry: './index', 6 output: { 7 publicPath: '/', 8 }, 9 module: { 10 rules: [ 11 { 12 test: /\.(png|jpg|gif)$/, 13 use: [ 14 { 15 loader: 'url-loader', 16 options: { 17 limit: 8192, 18 name: 'assets/[hash].[ext]', 19 }, 20 }, 21 ], 22 }, 23 { 24 test: /\.css$/, 25 use: [MiniCssExtractPlugin.loader, 'css-loader'], 26 }, 27 ], 28 }, 29 plugins: [ 30 new MiniCssExtractPlugin({ 31 filename: 'css/[name].css', 32 chunkFileName: 'css/[id].css', 33 }), 34 new ExtractCssAssetsPlugin({ 35 outputPath: 'assets/', 36 relativeCssPath: '../', // 由于创建了 css 目录 则生成的图片相对于 css 目录则为 `'../'` 37 }), 38 ], 39};
input:
1body { 2 color: red; 3 background-image: url(//img.alicdn.com/tfs/TB1zSOZrFGWBuNjy0FbXXb4sXXa-1024-1024.png); 4} 5 6.b { 7 background-image: url('./img.jpg'); 8} 9 10@font-face { 11 font-family: 'iconfont'; /* project id 377048 */ 12 src: url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.eot'); 13 src: url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.eot?#iefix') format('embedded-opentype'), 14 url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.woff') format('woff'), 15 url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.ttf') format('truetype'), 16 url('//at.alicdn.com/t/font_377048_kjcjjyweu4sra4i.svg#iconfont') format('svg'); 17}
output:
1body { 2 color: red; 3 background-image: url('/assets/cd7e3c88d4211a9b0b2335d1e417bb12.png'); 4} 5 6.b { 7 background-image: url(/assets/fcaa0cae8fcd6ecf465971d57fdeff85.jpg); 8} 9 10@font-face { 11 font-family: 'iconfont'; /* project id 377048 */ 12 src: url('/assets/34032f039a2b3b449235ba9d307409ec.eot'); 13 src: url('/assets/34032f039a2b3b449235ba9d307409ec.eot?#iefix') format('embedded-opentype'), 14 url('/assets/f7efc431f760b9e8a6125054c5f4a502.woff') format('woff'), 15 url('/assets/3a70f449494ab666efaf24b72d563431.ttf') format('truetype'), url('/assets/b1b72dfa538406f3897c40ab412b4183.svg#iconfont') 16 format('svg'); 17}
output.publicPath
设置为 http 网络路径,并且 forceLocal
未设置为 true
时,插件不工作。No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
25 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 24/26 approved changesets -- score normalized to 9
Reason
SAST tool is not run on all commits -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
56 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More