Permalink
Browse files

Disable Uglify for production builds

Uglify plus Webpack seems to mess up the source maps for Safare / Framer Studio so we disable them for now.
  • Loading branch information...
koenbok committed May 5, 2015
1 parent 5797cc7 commit 997378f9a6231472b046cb1c3ac945283a5046c2
Showing with 11 additions and 7 deletions.
  1. +11 −7 gulpfile.coffee
@@ -16,14 +16,19 @@ gulp.task "build:release", ->
config = _.extend CONFIG,
entry: "./framer/Framer.coffee"
output: {filename: "framer.js"}
output:
filename: "framer.js"
pathinfo: false
# Uglify is disabled for now because it messes up the
# source maps in Safari.
plugins: [
# new webpack.BannerPlugin("Framer", {}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
mangle: false,
compress: {warnings: false}
})
# new webpack.optimize.DedupePlugin(),
# new webpack.optimize.UglifyJsPlugin({
# mangle: false,
# compress: {warnings: false}
# })
]
return gulp.src(config.entry)
@@ -37,7 +42,6 @@ gulp.task "build:debug", ->
output:
filename: "framer.debug.js"
pathinfo: true
sourceMapFilename: "[file].map?nocache=#{Date.now()}"
debug: true
return gulp.src(config.entry)

0 comments on commit 997378f

Please sign in to comment.