Comments (2)
That's an interesting question.
You could indeed try to point to your 11ty generated index.html using the --html
option. And in there, use a bit of handlebars syntax to include all the right assets:
^ This is taken from the default template.
Alternatively, what jetpack does behind the scenes is it reads dist/manifest.json
file to extract all the top level js/css to be included into the html, you could consider doing something similar:
Lines 207 to 251 in bd5e84e
from jetpack.
Cool beans. Glad to hear it's unlikely I'll need to do custom webpack stuff anymore. While it might take a while before I have time to convert from my custom stuff to using jetpack with one of the configurations you propose above, I'm closing this now. as I'm confident enough now, based on what you've shown, that I will be able to migrate to jetpack at some point soon.
from jetpack.
Related Issues (20)
- Cannot run create-react-app with typescript HOT 3
- Pure backend: got errors "Module not found: Can't resolve..." HOT 7
- Add favicon to the default html header HOT 2
- Title option from config file is never used HOT 1
- CSS-modules: composes HOT 4
- Using Jetpack API, setup an ES6 module entry for backend HOT 2
- Do differential builds, modern by default
- Include config for async/await, it's not currently correctly building that bit
- Include hash into the output file names
- Rewrite the //# sourceMappingURL= for the runtime
- Default jetpack clean to y/N
- Pass NODE_ENV as env to the html template HOT 1
- If only [legacy] is configured, use jetpack's defaults for [modern] HOT 1
- View webpack.config final output HOT 2
- Remove "core-js" from alias HOT 2
- Provide an example of how to use module/no module
- Runtime source map url wrong
- Core-js compatibility issue HOT 2
- Proxy configuration doesn't pass query string parameters HOT 1
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 jetpack.