본문 바로가기

Frontend/Webpack&Vite

전역 경로 관리

https://webpack.js.org/plugins/define-plugin/#root

webpack.config.js

resolve: {
    modules: [
      path.join(__dirname, "src"),
      "node_modules"
    ]
}

https://blog.andrewray.me/autocomplete-es-modules-webpack-vscode/