-
-
Notifications
You must be signed in to change notification settings - Fork 608
css-loader with sourceMap: true
cause adding style tag delayed
#613
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
sourceMap: true
cause adding style tag delayed
As a side note, I'm working on new loader + plugin that aims to completely replace It does so by not injecting css at runtime but instead at compile time using EDIT: The mentioned plugin is now live at https://github.com/chipto/css-visor |
Thanks for your answer. |
I have strong feeling that |
😂yeah, sourcemap has no effect when css injected by |
@Aqours As promised the plugin is now live at https://github.com/chipto/css-visor Please give it a shot and file any issues you run into. It's just a start of new horizons. |
It works. |
Do you mind sharing minimal setup to reproduce that issue? |
😄Don't mind. It's not an issue. |
@Aqours can we close issue? |
Version: 0.28.7
webpack.config.js
What is the current behavior?
bundle.js
will add<style>
tag to<head>
tag when page loadingbundle.js
.normally,
<style>
tag will added firstly.actually,
<style>
tag added delayed when i settingsourceMap: true
[1], which cause page flickering and error result style computed by scripts.It works great when set
sourceMap: false
[1].If the current behavior is a bug, please provide the steps to reproduce.
repo linkwebpack version: 3.6.0
node.js version: 8.0.0
Operating System: Windows 10 x64
The text was updated successfully, but these errors were encountered: