lukeshawn
V2EX  ›  Node.js

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

  •  
  •   lukeshawn · Jan 3, 2019 · 3631 views
    This topic created in 2685 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   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.