![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
webpack-fix-style-only-entries
Advanced tools
Package to fix style (css/sass/less/stylus) only entries generating a extra js file.
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.
// ... other plugins
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const FixStyleOnlyEntriesPlugin = require("webpack-fix-style-only-entries");
module.exports = {
entry: {
"main" : "./app/main.js"
"styles": ["./common/styles.css", "./app/styles.css"]
},
module: {
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
]
},
]
},
plugins: [
new FixStyleOnlyEntriesPlugin(),
new MiniCssExtractPlugin({
filename: "[name].[chunkhash:8].css",
}),
],
};
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.
0.6.1 (Jan 18, 2021)
FAQs
Package to fix style (css/sass/less/stylus) only entries generating a extra js file.
The npm package webpack-fix-style-only-entries receives a total of 43,998 weekly downloads. As such, webpack-fix-style-only-entries popularity was classified as popular.
We found that webpack-fix-style-only-entries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.