your question is about webpack, check his devtool option: https://webpack.js.org/configuration/devtool/#devtool
an example with the Nuxt config to enable sourcemap for dev only:
module.exports = {
build: {
extend (config, { dev }) {
if (dev) {
config.devtool = (dev ? 'eval-source-map' : false)
Thanks
It still generates js sourcemaps
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
your question is about webpack, check his
devtooloption: https://webpack.js.org/configuration/devtool/#devtoolan example with the Nuxt config to enable sourcemap for dev only: