lukeshawn
V2EX  ›  Node.js

关于 webpack4 之后, 是不是可以去掉引用 path 了

  •  
  •   lukeshawn · Jan 3, 2019 · 3950 views
    This topic created in 2849 days ago, the information mentioned may be changed or developed.
    就是在 webpack.config.js 的配置中,抬头不再需要 const.path = require( 'path')

    后面 plugin 里面需要的 path 也可以直接引用,不再需要 path.join( __dirname, '路径'),

    直接 template: "./src/index.html",
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3490 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
    ♥ Do have faith in what you're doing.