- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 129字
- 2021-07-02 19:57:14
Module build
As we saw earlier, Vue can be dropped into a project as an external script for direct use in a browser. Vue is also available as an NPM module for use in more sophisticated projects, including a build tool such as Webpack.
If you're unfamiliar with Webpack, it's a module bundler that takes all your project assets and bundles them up into something you can provide to the browser. In the bundling process, you can transform those assets as well.
Using Vue as a module and introducing Webpack opens possibilities such as the following:
- Single-file components
- ES feature proposals not currently supported in browsers
- Modularized code
- Pre-processors such as SASS and Pug
We will be exploring Webpack more extensively in Chapter 5,Integrating Laravel and Vue.js with Webpack.
推薦閱讀
- Mastering AWS Lambda
- Java入門很輕松(微課超值版)
- Elastic Stack應用寶典
- Kotlin Standard Library Cookbook
- 可解釋機器學習:模型、方法與實踐
- R Data Analysis Cookbook(Second Edition)
- C語言程序設計
- Node.js開發(fā)指南
- Node.js 12實戰(zhàn)
- 代碼閱讀
- Delphi開發(fā)典型模塊大全(修訂版)
- Mudbox 2013 Cookbook
- 深度實踐KVM:核心技術、管理運維、性能優(yōu)化與項目實施
- Flask開發(fā)Web搜索引擎入門與實戰(zhàn)
- Parallel Programming with Python