Javascript-how to package an angular. js Project (preferably a single page application type )?

Source: Internet
Author: User
I haven't found a webpack project to be packaged with webpack or gulp for a long time. I feel that react/vuejs is used everywhere to teach you how to pack it. If you want to know something, please give me a prompt. Thank you for looking for a long time and I haven't found the webpack project packaged with webpack or gulp. I feel that react/vuejs is used everywhere to teach you how to pack it. If you want to know, please give me a prompt. Thank you.

Reply content:

I haven't found a webpack project to be packaged with webpack or gulp for a long time. I feel that react/vuejs is used everywhere to teach you how to pack it. If you want to know, please give me a prompt. Thank you.

Here, an Angular Demo using F. I .S can be learned. This demo can load the corresponding resources according to the routing. You can also compress the package.

Here, a generator is packaged according to grunt. I replaced grunt with gulp. The configuration is changed by referring to the generator-webapp.
Please refer to the following link for more information.

Otherwise try the generator-es6-angular, the generated code is a small demo that can be run directly. It contains the complete code organization structure,gulp+webpackPackaging, debugging tools, and usage

Http://isay.me/2016/02/angular-used-project-from-requirejs-to-webpack-1.html

For a series of articles I have written, please take a look.

  • Webpack package Demo: https://github.com/preboot/angular-webpack

  • Gulp package Demo (written in TypeScript): https://github.com/AngularShowcase/angular2-sample-app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.