Skip to content

Commit

Permalink
Merge pull request #619 from marmelab/sourcemaps
Browse files Browse the repository at this point in the history
[RFR] Add sourcemaps to the build process to ease debugging
  • Loading branch information
fzaninotto committed Aug 25, 2015
2 parents f8a9725 + bd7a00f commit eae12f2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ addons:
hosts:
- ngadmin
#sudo: false
cache:
directories:
- node_modules
language: node_js
node_js:
- "0.12"
Expand All @@ -17,7 +20,8 @@ before_install:
- gem update --system
- gem install compass
- "npm install -g grunt-cli"
- "make"
before_script:
- "./node_modules/protractor/bin/webdriver-manager update"
branches:
only:
- master
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function (grunt) {
},
exec: {
webpack: './node_modules/webpack/bin/webpack.js',
webpack_watch: './node_modules/webpack-dev-server/bin/webpack-dev-server.js --colors'
webpack_watch: './node_modules/webpack-dev-server/bin/webpack-dev-server.js --colors --devtool cheap-module-inline-source-map'
}
});

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ run:
@grunt

build:
@NODE_ENV=production ./node_modules/webpack/bin/webpack.js -p --optimize-minimize --optimize-occurence-order --optimize-dedupe --progress
@NODE_ENV=production ./node_modules/webpack/bin/webpack.js -p --optimize-minimize --optimize-occurence-order --optimize-dedupe --progress --devtool source-map
@cp -Rf build examples/blog/
@echo "Files build/ng-admin.min.css and build/ng-admin.min.js updated (with minification)"

Expand Down
3 changes: 2 additions & 1 deletion build/ng-admin-only.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/ng-admin-only.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion build/ng-admin-only.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/ng-admin-only.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit eae12f2

Please sign in to comment.