Gathering detailed insights and metrics for webpack-fix-style-only-entries
Gathering detailed insights and metrics for webpack-fix-style-only-entries
Gathering detailed insights and metrics for webpack-fix-style-only-entries
Gathering detailed insights and metrics for webpack-fix-style-only-entries
Webpack plugin to solve the problem of having a style only entry (css/sass/less) generating an extra js file.
npm install webpack-fix-style-only-entries
Typescript
Module System
Node Version
NPM Version
99.4
Supply Chain
88.7
Quality
75.8
Maintenance
100
Vulnerability
100
License
JavaScript (96.77%)
CSS (3.23%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
268 Stars
68 Commits
19 Forks
3 Watchers
20 Branches
10 Contributors
Updated on May 15, 2025
Latest Version
0.6.1
Package Id
webpack-fix-style-only-entries@0.6.1
Size
4.02 kB
NPM Version
6.14.8
Node Version
14.14.0
Published on
Jan 18, 2021
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
This is a small plugin developed to solve the problem of having a style only entry (css/sass/less/stylus) generating an extra js file.
You can find more info by reading the following issues:
It just find js files from chunks of css only entries and remove the js file from the compilation.
install using your package manager of choice:
npm install -D webpack-fix-style-only-entries
yarn add -D webpack-fix-style-only-entries
Require and add to webpack.config plugins.
Warning: this plugin does not load styles or split your bundles, it just fix chunks of css only entries by removing the (almost) empty js file.
1// ... other plugins 2const MiniCssExtractPlugin = require("mini-css-extract-plugin"); 3const FixStyleOnlyEntriesPlugin = require("webpack-fix-style-only-entries"); 4 5module.exports = { 6 entry: { 7 "main" : "./app/main.js" 8 "styles": ["./common/styles.css", "./app/styles.css"] 9 }, 10 module: { 11 { 12 test: /\.css$/, 13 use: [ 14 MiniCssExtractPlugin.loader, 15 'css-loader', 16 ] 17 }, 18 ] 19 }, 20 plugins: [ 21 new FixStyleOnlyEntriesPlugin(), 22 new MiniCssExtractPlugin({ 23 filename: "[name].[chunkhash:8].css", 24 }), 25 ], 26};
Name | Type | Default | Description |
---|---|---|---|
extensions | Array[string] | ["less", "scss", "css", "styl","sass"] | file extensions for styles |
silent | boolean | false | supress logs to console |
ignore | string or RegExp | undefined | match resource to be ignored |
// to identify only 'foo' and 'bar' extensions as styles
new FixStyleOnlyEntriesPlugin({ extensions:['foo', 'bar'] }),
Give an especial extension to your file (.css.js
for example) and configure new FixStyleOnlyEntriesPlugin({ extensions:['css.js'] })
. See: https://github.com/fqborges/webpack-fix-style-only-entries/issues/8.
Configure this plugin as new FixStyleOnlyEntriesPlugin({ ignore: 'webpack-hot-middleware' })
. See: https://github.com/fqborges/webpack-fix-style-only-entries/issues/12 and https://github.com/fqborges/webpack-fix-style-only-entries/blob/master/test/cases/css-entry-with-ignored-hmr/webpack.config.js.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/21 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
50 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