michalzalecki / angular-lazyload-webpack Goto Github PK
View Code? Open in Web Editor NEWLazy load AngularJS modules using webpack
Lazy load AngularJS modules using webpack
Hi Team,
There is an error while loading ng-annotate. The reason is because of extra character present in the Root directory path at webpack.config.js
The fragment should be like this.
resolve: {
root: __dirname + '/src',
},
instead of
resolve: {
root: __dirname + '/src/',
},
Tested on : Windows 8 / Node 12.
Effect: This won't allow the sample message all/new to work and webpack is throwing an error while building up the package.
I already solved it and informed how to use $scope and other services at https://github.com/panbhatt/angular-lazyload-webpack
hi michal,
Thank you for your Share.But i have met some problems when I run the example code.It shows “Module build failed: Error: "../bootstrap.js" is not in the SourceMap."
I didn't change your code,what I did was just npm install and run it.
But when I use 'webpack ' directly in command line ,it runs well.
My Os is Mac OsX,and Node is 0.10.26(I have changed my Nodejs in different version,include 6.0.0 and 5.2.0).
I have cloned your project and npm i && npm run build
.
In build folder there are list of files :
bundle.js
1.bundle.js
2.bundle.js
3.bundle.js
4.bundle.js
5.bundle.js
I think there have many files, can i merge them into one file?
In previous projects index.html
only have two script tags one is app.[hash].js
another is lib.[hash].js
Although there index.html
also has a script tag ,but there also have many files(1.bundle.js etc)
If can merge them I think it's excellent.
Thanks for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.