Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf2efb9

Browse files
committed
updated SASS calc() with math.div() and updated dependancies to remove node-sass [appends#575]
1 parent72c28e2 commitbf2efb9

27 files changed

+1646
-3655
lines changed

‎Gruntfile.js‎

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
constsass=require('sass');
2+
13
module.exports=function(grunt){
24

35
// Time how long tasks take. Can help when optimizing build times
@@ -20,22 +22,29 @@ module.exports = function (grunt) {
2022

2123
// Sass all the style things
2224
sass:{
23-
default:{
24-
files:{
25-
'dist/css/<%= pkg.name %>.css':'src/stylesheets/<%= pkg.name %>.scss',
26-
'dist/css/<%= pkg.name %>-docs.css':'src/stylesheets/<%= pkg.name %>-docs.scss'
27-
},
25+
options:{
26+
implementation:sass,
27+
sourceMap:true,
28+
outputStyle:'expanded'
29+
},
30+
dist:{
2831
options:{
32+
implementation:sass,
2933
sourceMap:true,
30-
outputStyle:'expanded'
34+
outputStyle:'compressed'
3135
},
36+
files:{
37+
'dist/css/<%= pkg.name %>.css':'src/stylesheets/<%= pkg.name %>.scss',
38+
'dist/css/<%= pkg.name %>-docs.css':'src/stylesheets/<%= pkg.name %>-docs.scss'
39+
}
3240
},
3341
minify:{
3442
files:{
3543
'dist/css/<%= pkg.name %>.min.css':'src/stylesheets/<%= pkg.name %>.scss',
3644
'dist/css/<%= pkg.name %>-docs.min.css':'src/stylesheets/<%= pkg.name %>-docs.scss'
3745
},
3846
options:{
47+
implementation:sass,
3948
sourceMap:true,
4049
outputStyle:'compressed'
4150
},
@@ -57,12 +66,12 @@ module.exports = function (grunt) {
5766

5867
// Stylesheets, fonts, img, and js **FROM** /node_modules/uswds/
5968

60-
uswds_stylesheets:{
69+
/*uswds_stylesheets: {
6170
expand: true,
6271
src: '**',
6372
cwd: 'node_modules/uswds/src/stylesheets',
6473
dest: 'src/stylesheets/lib/uswds'
65-
},
74+
}, */
6675

6776
uswds_fonts:{
6877
expand:true,
@@ -316,7 +325,7 @@ module.exports = function (grunt) {
316325
grunt.registerTask('build',[
317326
'clean:dist',
318327
'copy:datepicker_bk',
319-
'copy:uswds_stylesheets',
328+
//'copy:uswds_stylesheets', // this will add decrecated SASS if copied
320329
'copy:uswds_fonts',
321330
'copy:uswds_img',
322331
'copy:uswds_js',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp