Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source map + minimizer results in silent failure #102

Closed
webpack-bot opened this issue Jun 30, 2019 · 1 comment
Closed

Source map + minimizer results in silent failure #102

webpack-bot opened this issue Jun 30, 2019 · 1 comment

Comments

@webpack-bot
Copy link

Bug report

What is the current behavior?
Using source map with minimizer causes silent failure. Output file not created. No console output.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Create empty file 1.js
  2. Create webpack.config.js file with contents:
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
    devtool:  'source-map',
    entry: './1.js',
    resolve: {
        extensions: ['.js']
    },
    output: {
        filename: 'main.js',
        path: __dirname,
    },
    optimization: {
        minimize: true,
        minimizer: [
            new TerserPlugin({
                sourceMap: true,
            }),
        ],
    }
};
  1. Run webpack --config webpack.config.js

What is the expected behavior?
Output file main.js is created. Console output.

Other relevant information:
webpack version: 4.35.0
Node.js version: 10.15.3
terser-webpack-plugin version: 1.3.0
Operating System: Win 10


This issue was moved from webpack/webpack#9338 by @sokra. Original issue was by @underflow00.

@alexander-akait
Copy link
Member

Close in favor #100

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

No branches or pull requests

2 participants