Comments (2)
it could be good to reduce bundle size, ie. load the first template the user hits into the bundle, precache the rest after the first page is already rendered.
It might also be able just to use normal webpack lazy-load syntax... but I haven't tried that yet.
from angular-webpack-plugin.
You're right, html-loader does work for almost all cases. However, it would be nice for this plugin to have a story for when developers use ng-include to fetch external html fragments (and webpack would not by default put these html fragments in the bundle directory) or when they want to specify a templateUrl rather than template in their router or directives. This said, its still probably not a big deal.
from angular-webpack-plugin.
Related Issues (18)
- Convert camelCase to dash-separated.js
- Failing tests HOT 1
- `npm install` at `/demo` yields `does not satisfy requirements` error HOT 1
- Uncaught TypeError: Cannot read property 'module' of undefined HOT 5
- Module not found: Error: a dependency to an entry point is not allowed HOT 1
- dealing with other angular modules installed with bower HOT 3
- Export the module
- Require ui.bootstrap (webpackMissingModule) HOT 4
- Examples & Documentation HOT 6
- Tests do not run with the latest version of webpack HOT 1
- a webpack loader that gets rid of the angular module system HOT 1
- Ignore module name prefix HOT 3
- include ngmin functionality somehow HOT 6
- Add tests that the result works in the browser HOT 2
- Handle multiple modules per file (locally) HOT 2
- The package.json dependencies are very old HOT 3
- Usage example in README HOT 13
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 angular-webpack-plugin.