sourcemap (before uglifyify@4.0.1) is causing source maps to be generated every time minify option is set to true.
See the issue backing latest commit.
It causes roots compile to fail because source map is generated next to script content and uglify refuses to minify with message:
TypeError: path must be a string or Buffer while parsing file: ...\website\assets\js\main.coffee
at Object.fs.openSync (fs.js:1:1)
at Object.fs.readFileSync (fs.js:1:1)
at Object.exports.minify (...\website\node_modules\uglify-js\tools\node.js:1:1)
at Stream.ready (...\website\node_modules\roots-browserify\node_modules\uglifyify\index.js:1:1)
at Stream.<anonymous> (...\website\node_modules\roots-browserify\node_modules\uglifyify\index.js:1:1)
sourcemap
(before uglifyify@4.0.1) is causing source maps to be generated every timeminify
option is set totrue
. See the issue backing latest commit.It causes
roots compile
to fail because source map is generated next to script content and uglify refuses to minify with message: