2019年6月5日
摘要: 与 package.json 配合使用 var path=require("path");var OpenBrowserPlugin = require('open-browser-webpack-plugin');module.exports={ entry:"./index.js", outpu 阅读全文
posted @ 2019-06-05 15:56 Web引领者 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 与 webpack.config.js 配合使用 目录结构输入指令 npm i 得到 node_modules 均在当前文件下完成内容: { "name": "6.5-1", "version": "1.0.0", "description": "", "main": "index.js", "sc 阅读全文
posted @ 2019-06-05 15:55 Web引领者 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 没有指令操作的属性生产环境,有指令操作的属于开发环境 webpack:输入指令后,便会自动开启一个浏览器 需要插件:open-browser-webpack-plugin 生产环境 想使用 node.js 中 path 的方法, var path=require("path") 路径操作 path. 阅读全文
posted @ 2019-06-05 14:08 Web引领者 阅读(311) 评论(0) 推荐(0) 编辑