代码之家  ›  专栏  ›  技术社区  ›  rhysclay

下一个js module.exports sass和static

  •  0
  • rhysclay  · 技术社区  · 7 年前

    module.exports = {
      withSass() {},
      exportPathMap: function() {
        return {
          '/': { page: '/' },
        };
      },
    };
    

    1 回复  |  直到 7 年前
        1
  •  3
  •   Fabien Greard    7 年前

    我不知道这件事 exportPathMap 分开,但是 withSass 应该这样使用:(它是一个临时的)

    module.exports = withSass({
      exportPathMap: function() {
        return {
          '/': { page: '/' },
        };
      },
    });