官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 温泉县| 雅安市| 定兴县| 定兴县| 叙永县| 长春市| 拉萨市| 威海市| 平山县| 商水县| 同德县| 沁阳市| 永吉县| 英山县| 阳朔县| 库伦旗| 桂东县| 昌黎县| 深圳市| 江华| 永靖县| 霍山县| 鄯善县| 墨脱县| 赣州市| 泸州市| 苍山县| 新晃| 双峰县| 黑山县| 太湖县| 化州市| 巍山| 屏东市| 清镇市| 建宁县| 嘉禾县| 祁门县| 晋城| 祁连县| 革吉县|