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

📅  最后修改于: 2022-03-11 15:03:21.598000             🧑  作者: 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;
  },

}