摘要:
const {resolve} = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry:'./src/index.js', output:{ filenam 阅读全文
posted @ 2020-11-26 03:49
阿jin
阅读(43)
评论(0)
推荐(0)
摘要:
const { resolve } = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: resolve(__dirname, 'src/index.j 阅读全文
posted @ 2020-11-26 03:05
阿jin
阅读(59)
评论(0)
推荐(0)
摘要:
/** * loader:1. 下载 2. 使用(配置loader) * plugins:1. 下载 2. 引入 3. 使用 */ const { resolve } = require('path') const HtmlWebpackPlugin = require('html-webpack- 阅读全文
posted @ 2020-11-26 02:05
阿jin
阅读(82)
评论(0)
推荐(0)
摘要:
/** * webpack.config.js webpack的配置文件 * 作用:指示 webpack 干哪些活(当你运行 webpack 指令时,会加载里面的配置) * * 所有构件工具都是基于nodejs平台运行的~模块化默认采用commonjs */ const { resolve } = 阅读全文
posted @ 2020-11-26 01:28
阿jin
阅读(65)
评论(0)
推荐(0)
摘要:
/** * index.js: webpack入口起点文件 * * 1.运行指令: * 开发环境:webpack ./src/index.js -o ./build --mode=development * webpack会以 ./src/index.js 为入口文件开始打包,打包后输出到 ./bu 阅读全文
posted @ 2020-11-26 00:41
阿jin
阅读(46)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-11-26 00:04
阿jin
阅读(49)
评论(0)
推荐(0)