Giter VIP home page Giter VIP logo

Comments (6)

davidnagli avatar davidnagli commented on May 2, 2024

How is this different from #36? Didn’t you already fix this #58?

from parcel.

DeMoorJasper avatar DeMoorJasper commented on May 2, 2024

#36 was a small bug with getBundleUrl, this is something in the bundler.
This bug is about not including the css-loader.js module in the bundle unless css is being imported from js.
So for example if someone would use one big global css file in index.html like this:
<link rel="stylesheet" href="./global.css" />
It would not auto-update

from parcel.

devongovett avatar devongovett commented on May 2, 2024

I believe a parallel JS bundle will get created alongside the CSS, but it doesn't currently get inserted into the HTML. We should do that similar to how we do it for the opposite case (CSS imported from JS). https://github.com/parcel-bundler/parcel/blob/master/src/packagers/HTMLPackager.js#L11

from parcel.

abienz avatar abienz commented on May 2, 2024

I still see this issue with Parcel 1.4.1 and css or styl files in both Firefox and Google Chrome.

Has it actually been fixed?

<html>
  <head>
    <script src="index.js"></script>
    <link href="./base.css" type="text/css" rel="stylesheet" />
  </head>

  <body>
    <h1>Hello world</h1>
    <p>Beep boop</p>
  </body>
</html>
* {
  margin: 0;
  padding: 0;
}

h1 {
  color: #F0F;
}

p {
  color: #0F0;
}

Changing the color values of the h1 and p will not trigger a reload or update of the browser, I have to hit refresh myself.

from parcel.

DeMoorJasper avatar DeMoorJasper commented on May 2, 2024

@abienz this is not yet published on npm, it’s already in the master branch however

Sent with GitHawk

from parcel.

abienz avatar abienz commented on May 2, 2024

@DeMoorJasper Thanks for the info, I look forward to seeing the update.

from parcel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.