Comments (8)
@SkipTyler There you go... I noticed one line having incorrect path, so now it is all good.
Enjoy!
from webpack-config.
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:
yarn dev
ornpm run dev
- which will run the server (e.g.localhost:8080
)yarn build
ornpm 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.
Give me a moment to push an update which resolves those issues for me.
from webpack-config.
This should be fixed now in new commit. Can you please try it out?
from webpack-config.
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.
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.
@dvlden Working! Thank you so much!
from webpack-config.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-config.