Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

SourceMap not generated #103

Open
zazagag opened this issue Aug 26, 2020 · 0 comments
Open

SourceMap not generated #103

zazagag opened this issue Aug 26, 2020 · 0 comments

Comments

@zazagag
Copy link

zazagag commented Aug 26, 2020

Does the parallel-webpack support sourcemap? I am generate sourcemap through webpack.SourceMapDevToolPlugin and after start using parallel-webpack via NodeAPI, sourcemaps are not generated.

Provide your webpack config

{
      ....
  devtool: false,
  plugins: [
    ...
    new webpack.SourceMapDevToolPlugin({
      filename: '../../source-maps-browser/[file].map',
      append: '\n//# sourceMappingURL=[file].map',
    }),
    ...
  ],
  optimization: {
    runtimeChunk: 'single',
    splitChunks: {
      cacheGroups: {
        commons: {
          test: /[\\/]node_modules[\\/].*\.js$/,
          name: 'vendors',
          chunks: 'all',
        },
        styles: {
          name: 'styles',
          test: /\.css$/,
          chunks: 'all',
          enforce: true,
        },
      },
    },
    minimizer: [
      new TerserPlugin({
        cache: true,
        parallel: true,
        sourceMap: true,
      }),
    ],
  },
  ...
}

Provide your Environment details

  • Node version: v12.16.2

  • webpack version: 4.44.1

  • parallel-webpack version: 2.6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant