-
Notifications
You must be signed in to change notification settings - Fork 122
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
can not find the source map file when use UglifyJsPlugin #81
Comments
webpack will output multiple destination files. Are you sure |
@shama
There is only one file named |
@plantain-00 Try using webpack's source map setting instead: .pipe(webpack({
plugins: [
new webpack.webpack.optimize.UglifyJsPlugin({ minimize: true })
],
devtool: 'source-map'
})) Here are docs on more options with webpack's |
@shama it works, thanks. |
Using So in the end my configuration looked like this: webpack.config.js var webpack = require('webpack');
module.exports = {
devtool: 'source-map',
entry: {
filename: './build/proteus.js'
},
output: {
filename: 'proteus-bundle.js',
library: 'proteus',
libraryTarget: 'amd',
path: './dist'
},
node: {
fs: 'empty',
crypto: 'empty'
},
externals: {
'libsodium-native': 'libsodium_native'
},
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {warnings: false},
output: {comments: false},
sourceMap: true
})
]
}; |
Hmmm I'm having the same issue, but when using webpack straight up, rather than in Gulp. I've tried all the solutions listed here, but to no avail! I'll report back here if I discover anything... |
sourceMaps config parameter is now |
It doesn't work with |
The
index.min.js
is created and minified properly, but I can not find any source map file.And there is no
//# sourceMappingURL=index.min.map
at the end ofindex.min.js
file.Considering UglifyJsPlugin does have
sourceMap
option, is this a bug ofwebpack-stream
?The text was updated successfully, but these errors were encountered: