- Angular UI Development with PrimeNG
- Sudheer Jonna Oleg Varaksin
- 180字
- 2021-07-15 17:32:58
Setting up PrimeNG project with Webpack
Webpack (https://webpack.js.org) is a de facto standard bundler for single-page applications. It analyzes dependencies between JavaScript modules, assets (styles, icons, and images) as well as other files in your application and bundles everything together. In Webpack, everything is a module . You can, for example, import a CSS file like a JavaScript file using require('./myfile.css') or import './myfile.css'.
Webpack can figure out the right processing strategy for imported files by means of the file extension and associated loader. It is not always reasonable to build one big bundle file. Webpack has various plugins to split your code and generate multiple bundle files. It can also load parts of your application asynchronously on demand (lazy loading). All these features make it a power tool. In this section, we will give a high-level overview of Webpack 2 core concepts and show essential steps for creating a Webpack-based Angular, PrimeNG application.
https://github.com/ova2/angular-development-with-primeng/tree/master/chapter1/primeng-webpack-setup.
The project structure was kept the same as in the SystemJS-based setup.
- The Supervised Learning Workshop
- Instant Testing with CasperJS
- 精通JavaScript+jQuery:100%動態(tài)網(wǎng)頁設(shè)計(jì)密碼
- C語言程序設(shè)計(jì)習(xí)題解析與上機(jī)指導(dǎo)(第4版)
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語言實(shí)現(xiàn))
- Mastering Entity Framework
- Java FX應(yīng)用開發(fā)教程
- Visual Basic學(xué)習(xí)手冊
- 區(qū)塊鏈底層設(shè)計(jì)Java實(shí)戰(zhàn)
- Raspberry Pi Robotic Projects(Third Edition)
- 零代碼實(shí)戰(zhàn):企業(yè)級應(yīng)用搭建與案例詳解
- MongoDB Cookbook(Second Edition)
- STM8實(shí)戰(zhàn)
- Unity Android Game Development by Example Beginner's Guide
- SQL Server 2012 數(shù)據(jù)庫應(yīng)用教程(第3版)