-
-
Notifications
You must be signed in to change notification settings - Fork 387
Webpack generate unnecessary styles.js file with css entry #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Your example doesn't use this plugin |
@sokra I am so sorry for that, I have not commit and push it to remote repo, now the example is using this plugin and run well with |
Not sure if I should comment here since it's already closed but I do register the same behavior, that's not a big deal indeed, but I always get a style.js file along style.css |
You can't use a entry.js import style from './entry.css' |
Well thanks Michael, that was embarrassing, I created the style entry point to better debug some issue while migrating from webpack 3 to 4 and forgot about that! |
I have two entry, one for javascript bundling, one for css bundling, I use this plugin for extracting css, everything is OK except generating a unnecessary
styles.af6d7e48e7.js
file in my dist/js folder.Environment
Webpack entry
Dist structure
I use webpack-manifest-plugin to generat assets
manifest.json
for backend reference, the unnecessarystyles.af6d7e48e7.js
is in themanifest.json
. I can't usefilter
to remove files likestyles.af6d7e48e7.js
because the output filename is depending on entry name.Example repo
laozhu/wsk
Clone the example repo and run
yarn install
andyarn start
will get the same dist structure above.My problem
Any idea for not generating files like
styles.af6d7e48e7.js
, or remove these unnecessary files from dist and manifest.json?The text was updated successfully, but these errors were encountered: