📜  故事书绝对路径 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:09.589000             🧑  作者: Mango

代码示例3
const path = require('path');

module.exports = {
  ...other settings....,

  webpackFinal: async (config) => {
    config.resolve.modules = [
      ...(config.resolve.modules || []),
      path.resolve(__dirname, "../src"),
    ];

    return config;
  },

}