Comments (8)
Thanks. I'm trying out your branch. It doesn't seem to be picking up my files automatically, but I can do this and it works. ¯_(ツ)_/¯
<link rel="apple-touch-icon" href="<%= require('./assets/img/touch-icon-iphone.png') %>">
from html-webpack-plugin.
Take a look at the 2.0 branch: https://github.com/ampedandwired/html-webpack-plugin/blob/feature/loaders/examples/html-loader/template.html
from html-webpack-plugin.
How close is this 2.0 branch to being ready? I have a production browserify project that I'm almost done converting to webpack. This is the last piece of the puzzle.
from html-webpack-plugin.
Well - I guess 2.0 is more or less feature complete but might need some further improvements.
If you don't want to use the 2.0 beta of this plugin might help you: https://www.npmjs.com/package/transfer-webpack-plugin
from html-webpack-plugin.
If it doesn't picking up links it might be a bug of the html-loader
from html-webpack-plugin.
I'm after the exact same thing. I'd like to be able to inject images (and possibly even css files) into a template, and then have those assets get built as part of the normal webpack build. I'm not specifically seeing a "2.0" branch. Do you mean the "feature/loaders" branch?
from html-webpack-plugin.
Yeah that's the one.. however it seems like that the extract-text-plugin does not work with child compilations.. so css is not supported by now
from html-webpack-plugin.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from html-webpack-plugin.
Related Issues (20)
- templateContent function did not get headTags added in afterTemplateExecution HOT 1
- Insert just defer, not defer=defer HOT 1
- Ability to pass extra plugins to the child compilation HOT 5
- Ability to escape relative urls HOT 1
- How to bundle all of app's templates, styles and scripts into one single .js file, that can be exported as a library and attached to another HTML file and load?
- Is it possible to inject HTML code built from `.ejs` template into js while building and bundling with webpack? HOT 3
- Request sitemap.txt generation HOT 5
- Pre release libraries not working
- Don't update static link file in template.html HOT 1
- Writing Your Own Templates section does not work HOT 2
- ```[tasklist] ### My tasks - [ ] https://github.com/octo-org/octo-repo/issues/45 - [ ] Draft task ```
- Embed the script into HTML HOT 4
- Add a link rel=prefetch for a css chunks created within your wepbackPrefetch lazy loaded js chunks HOT 2
- Watch mode memory leak when saving HTML template HOT 1
- multi-page behavior illogical? HOT 1
- Memory leak in watch mode due to unique child compiler IDs HOT 1
- New version 5.6.0 introduce breaking changes to the plugin interface HOT 3
- CSS order not correct when using split chunks HOT 1
- File does not render correctly / cannot get variable from options HOT 3
- Allow plugin to run during a custom stage, or change default 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 html-webpack-plugin.