Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 699c41c

Browse files
committed
feat(csp): Create a build of AngularJS that contains no CSS.
This is useful for sites that use CSP, especially those that prohibit inline CSS but allow eval.
1 parent 2a60810 commit 699c41c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Gruntfile.js

+5
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ module.exports = function(grunt) {
174174
minify: true
175175
}
176176
},
177+
"angular-no-css": {
178+
dest: 'build/angular-no-css.js',
179+
src: util.wrap([files['angularSrc']], 'angular')
180+
},
177181
loader: {
178182
dest: 'build/angular-loader.js',
179183
src: util.wrap(files['angularLoader'], 'loader')
@@ -216,6 +220,7 @@ module.exports = function(grunt) {
216220

217221
min: {
218222
angular: 'build/angular.js',
223+
"angular-no-css": 'build/angular-no-css.js',
219224
animate: 'build/angular-animate.js',
220225
cookies: 'build/angular-cookies.js',
221226
loader: 'build/angular-loader.js',

0 commit comments

Comments
 (0)