一.webpack默认打包

  • webpack默认可以打包 js/json 文件
const path = require("path");
module.exports = {
    //入口
    entry:"./src/js/index.js",
    //出口
    output:{
        path:path.resolve(__dirname,"build"),
        filename:"./js/build.js"
    },
    //打包模式
      //development,production,none
    mode:'development'
}
上一篇:4.本地引入 React


下一篇:Spring Reactive Development - Error Handling