# study_mustache **Repository Path**: one_pic/study_mustache ## Basic Information - **Project Name**: study_mustache - **Description**: Vue源码解析之mustache模板引擎 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-10-27 - **Last Updated**: 2023-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: vue源码-模板引擎 ## README # Vue源码解析之mustache模板引擎 ## 环境搭建 1. 安装webpack webpack-cli webpack-dev-server ```sh npm install -D webpack webpack-cli webpack-dev-server ``` 2. webpack.config.js 配置 ```javascript const path = require('path'); module.exports = { // 环境 mode: 'none', // 入口 entry: './src/index.js', // 出口 output: { // 虚拟路径,不会真实生成 publicPath: '/xuni/', // 打包出的文件名 filename: 'bundle.js', }, // 配置webpack-dev-server devServer: { // 端口号 port: 8080, // 不压缩 compress: false, // 静态资源文件夹 static: { directory: 'www' }, } }; ```