Skip to content
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

#12 Add sourcemap option to browser-js technology #34

Merged
merged 1 commit into from
Sep 8, 2015
Merged

Conversation

tormozz48
Copy link
Contributor

Resolved #12

@blond @j0tunn
Please review it

.builder(function (sourceFiles) {
return this._readSourceFiles(sourceFiles)
.then(function (sources) {
var file = new File(this.node.resolvePath(this._target), this._sourcemap),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

второй параметр должен быть объектом: {sourceMap: this._sourcemap}. Boolean тоже обрабатывается, но по хорошему со временем это нужно будет выпилить

@j0tunn
Copy link

j0tunn commented Aug 30, 2015

В остальном 🆗

@blond
Copy link
Member

blond commented Aug 31, 2015

Если указать одновременно compress: true и sourcemap: true, то UglifyJS удалит коментарий с картами кода.

Как поддержать карты кода в UglifyJS смотри в https://github.com/mishoo/UglifyJS2#the-simple-way

@tormozz48
Copy link
Contributor Author

@blond

Посмотри пожалуйста.
(Сейчас здесь используется временная ветка enb-source-map)

EOL = require('os').EOL;
var vow = require('vow'),
vfs = require('enb/lib/fs/async-fs'),
Utils = require('enb-source-map/lib/utils'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему с большой буквы? Это же немспейс.

@blond
Copy link
Member

blond commented Sep 4, 2015

Написал пару замечаний.

@tormozz48
Copy link
Contributor Author

🆙

@blond
Copy link
Member

blond commented Sep 8, 2015

🆗

tormozz48 added a commit that referenced this pull request Sep 8, 2015
#12 Add sourcemap option to browser-js technology
@tormozz48 tormozz48 merged commit c24e016 into master Sep 8, 2015
@tormozz48 tormozz48 removed the review label Sep 8, 2015
@tormozz48 tormozz48 deleted the issue-12 branch September 8, 2015 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants