Comments (5)
I replicated what you did.
Installed a theme (Prologue), generated the site, copied public folders to assets, ran hugulp and saw the errors.
They're mostly due to the theme using an old version of jquery (1.11.3), when 3.x is already out.
The site generated by hugulp build does reference fingerprinted assets (except for the fonts), but in general you should receive the benefits.
This is still not optimal however, I'll give it some more thought.
from hugulp.
Ahh. I think I got it. I copied everything that was generated into public to the corresponding subfolders of assets. When I ran the build command, it looks like it is minimizing, although I get a bunch of errors back during the process. Not sure if that's normal or not. It finishes and the local site seems to work fine.
from hugulp.
You're right. Everything that hugulp should take care of needs to be placed in assets and the corresponding subfolders. It is always a good idea to put all theme relevant things into the theme subfolder and everything else in the assets folder. If it shows errors or warning, then something is wrong ;-) Ideally, it should work without any errors/warnings. I had a similar issue with lots of warnings, especially in the JS files. I hired a developer to fix these. Mostly, it just has been a warning due to missing semicolons due to the mix of JS and jQuery. I don't like errors and warnings, even if the result works. It makes it harder to see if a real problem hides between all whose warnings. So better get rid of them.
After all it should look like your first result posted above.
from hugulp.
Hi @jaydreyer, I don't use themes so I've never really given too much thought to it.
In general, what you did should "work" as well as what @adcgn suggested.
I'll look into improving theme support.
from hugulp.
Excellent. Thanks for your help.
from hugulp.
Related Issues (20)
- Add docker support HOT 1
- having problem with reference task HOT 1
- Stuck in infinite loop on Ubuntu HOT 4
- UnCSS support HOT 3
- Source Map HOT 2
- Unable to minify Javascript error HOT 1
- HTML minifying HOT 1
- .hugulprc HOT 2
- Update code and variables
- Put all hard coded files/directories into an array
- Support .sass files in addition to .scss
- hugulp next HOT 1
- why doesn't 'watch' include autoprefixer? HOT 5
- CSS and JS not minified HOT 7
- JavaScript Concatenation? HOT 4
- Allow json extension for config file
- Update to Gulp 4 HOT 1
- Support for standardjs or custom eslint-config
- hugulp reprocesses images already compressed or optimized by hugulp HOT 1
- No stylesheets generated? HOT 3
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 hugulp.