Skip to content
Discussion options

You must be logged in to vote

i think i fixed it by doing

withPwa(
  withCSS(
    withSass({
      webpack(config, options) {
        config.module.rules.push(
          {
            test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
            use: {
              loader: "url-loader",
              options: {
                limit: 100000
              }
            }
          },
          {
            test: /\.(ogg|mp3|wav|mpe?g)$/i,
            loader: "file-loader",
            options: {
              name: "[path][name].[ext]"
            }
          }
        );
        return config;
      },
      pwa: {
        dest: "public"
      }
    })
  )
);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yaohuangguan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants