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
Assets does not compiled at nuxt-edge:latest #3723
Comments
Hey 👋 Have you tried |
@manniL Ah sorry I just tried I'm wondering why doesn't work |
For more information, Steps to reproduce
<template>
<div>
<img src="~/assets/icon.svg"> <!--// works fine-->
<img src="~assets/icon.svg"> <!--// works fine too-->
<div class="icon-1"></div> <!--// this tag styled in <style />-->
<div class="icon-2"></div> <!--// this tag styled in <style />-->
</div>
</template>
<style>
.icon-1 {
width: 100px;
height: 100px;
background-image: url('~/assets/icon.svg'); /* this is NOT compiled. however, "2.0.0-25468832.6578bd7" version has no problem with compile */
}
.icon-2 {
width: 100px;
height: 100px;
background-image: url('~assets/icon.svg'); /* this is compiled as expected. */
}
</style> |
here is my screenshots 1. component2. http://localhost:3000/3. Not compiled4. compiled |
|
Please use |
This bug-report has been cancelled by @manniL. |
@clarkdo I expected |
Could you please provide a repository? |
here it is :) please check |
My current time is midnight already, I’ll look into it tomorrow, sorry for the inconvenience. |
okay good night💤 |
The issue is related to webpack-contrib/css-loader#750, @Atinux Do we need to downgrade the css-loader or change doc or release note as a reminding ? |
Downgrade css-loader for now, 6bfa68d |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
nuxt-edge
Reproduction link
.
Steps to reproduce
I'm using nuxt-edge version "latest"
since I'm re-installed packages (node_modules),
this bug showed up.
so I'm guessing latest build has this bug
What is expected ?
~assets/icon.svg
(in style section)should be turn into
data:image/svg+xml;base64 ...)
What is actually happening?
assets doesn't compiled.
for example) background-image: url(/assets/icon.svg)
Additional comments?
Assets compiled with
2.0.0-25468832.6578bd7
not compiled with latest build which
2.0.0-25569931.85a8af5
I'm using nuxt starter template
The text was updated successfully, but these errors were encountered: