- 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.
推薦閱讀
- Modular Programming with Python
- Mastering Zabbix(Second Edition)
- 復(fù)雜軟件設(shè)計之道:領(lǐng)域驅(qū)動設(shè)計全面解析與實戰(zhàn)
- Linux C/C++服務(wù)器開發(fā)實踐
- Learning Data Mining with Python
- Functional Programming in JavaScript
- 網(wǎng)絡(luò)爬蟲原理與實踐:基于C#語言
- Getting Started with NativeScript
- Java網(wǎng)絡(luò)編程實戰(zhàn)
- Raspberry Pi Robotic Projects(Third Edition)
- PHP 7從零基礎(chǔ)到項目實戰(zhàn)
- 寫給青少年的人工智能(Python版·微課視頻版)
- Offer來了:Java面試核心知識點精講(框架篇)
- 現(xiàn)代C++語言核心特性解析
- Jenkins 2.x實踐指南