Giter VIP home page Giter VIP logo

Comments (8)

dvlden avatar dvlden commented on May 27, 2024 1

@SkipTyler There you go... I noticed one line having incorrect path, so now it is all good.
Enjoy!

from webpack-config.

dvlden avatar dvlden commented on May 27, 2024

Hey @SkipTyler !
I am aware of that little issue. Had to use sub-directories a couple of times for some clients and I needed to manually change those paths after build, in order to make it work.

I have fixed this actually, but I forgot to push new version, which I'll do sometime later...

However, it'll work fine if you are building your project locally and it will end up in the root directory of a domain in production...

So it will work properly in these two cases:

  1. yarn dev or npm run dev- which will run the server (e.g. localhost:8080)
  2. yarn build or npm run build - which will make it ready for production and you upload the site to the root path of domain (e.g. domain.com) no sub-dirs...

from webpack-config.

dvlden avatar dvlden commented on May 27, 2024

Give me a moment to push an update which resolves those issues for me.

from webpack-config.

dvlden avatar dvlden commented on May 27, 2024

This should be fixed now in new commit. Can you please try it out?

from webpack-config.

SkipTyler avatar SkipTyler commented on May 27, 2024

This solved the problem with paths in the css
For fonts and images

css and js is still connected in the old way

from webpack-config.

dvlden avatar dvlden commented on May 27, 2024

That's interesting 😩

I just used an old project with assets to test it and it injects proper and updated paths...

<!-- Styles before enclosing HEAD tag -->
<link href="styles/vendor.css" rel="stylesheet" integrity="sha384-60QNtHgQGpg28vH/uhwlwDKckHNUspugA44nmGc3MGtQ1f01ulLnYBWhh84d1+nd" crossorigin="anonymous">

<link href="styles/app.css" rel="stylesheet" integrity="sha384-fGn/sANBjvasZJhCFjKoj50czK03L/7RvojfKyjgkSu5PimQcVkb2xf5pCTTp072" crossorigin="anonymous">

<!-- Scripts before enclosing BODY tag -->
<script src="scripts/vendor.js" integrity="sha384-TI2qNirdmrbk6nGIUGfNIb4Nnj+SR8pAHNyyiNclR82oZO+Iri1EfLrMdPSIyDTA" crossorigin="anonymous"></script>

<script src="scripts/app.js" integrity="sha384-aqlIE9OAanqnA7J4o6+D5UOtwoPB09/jHFjyxDMcIIGF2WIPjeZz+dwKxe86UF28" crossorigin="anonymous"></script>

Notice the paths... They are not absolute anymore.

from webpack-config.

SkipTyler avatar SkipTyler commented on May 27, 2024

@dvlden Working! Thank you so much!

from webpack-config.

dvlden avatar dvlden commented on May 27, 2024

@SkipTyler - I'm glad it worked out for you too. Thank you for your interest in using my config or learning from it. Either way, I'm happy I was able to help.

from webpack-config.

Related Issues (10)

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.