How to generate source-map files by vue-cli3 webpack4

vue-cli3 + webpack packages generate files that do not contain map files. I need to produce map in both development and production environments

vue.config.js is configured as follows

module.exports = {
    // ...
    lintOnSave: false,
    runtimeCompiler: true,
    productionSourceMap: true,
    devServer: {
        port: 8084,
        https: false,
        hotOnly: false,
        // proxy: null, // 
        proxy: false,
        before: app => { }
    },
    configureWebpack: {
        resolve: {
            alias: {
                // Vue
                "vue$": "vue/dist/vue.js"
            }
        },
        //js
        optimization: {
            minimizer: [
                new UglifyJsPlugin({
                    uglifyOptions: {
                        compress: false
                    }
                })
            ]
        },

        
        plugins: [
            // new BundleAnalyzerPlugin({
            //     analyzerMode: "server",
            //     analyzerHost: "127.0.0.1",
            //     analyzerPort: 9999,
            //     reportFilename: "report.html",
            //     defaultSizes: "parsed",
            //     openAnalyzer: true,
            //     generateStatsFile: false,
            //     statsFilename: "stats.json",
            //     logLevel: "info"
            // })
        ]
    }
}

there are many chunk files in the generated js directory, but there is no map


solved that you cannot use the compression plug-in


it's not that you didn't generate a map file, but you didn't generate a separate map file, so you can't debug it. Configure output.devtoolModuleFilenameTemplate to solve

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3313b-2be58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3313b-2be58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?