# Part2-yjx **Repository Path**: dadami/dabaicai ## Basic Information - **Project Name**: Part2-yjx - **Description**: 模块二作业 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### webpack 上手 - yarn init --yes - yarn add webpack wepack-cli --dev - yarn webpack --version 查看命令 ### webpack 入口出口 ``` const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'output'), filename: 'bundle.js' } }; ``` ### webpack 工作模式 > yarn webpack --mode none // 最原始打包,不会处理 ### webpack打包结果运行原理