Skip to content

Commit

Permalink
Update dist/ to keep assets/** folder and exclude assets/sass from it
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrina-p committed Jun 1, 2018
1 parent af2d845 commit e021676
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .Gruntfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = (grunt) => {
expand: true,
cwd: 'frontend/simple/assets/sass',
src: ['*.{sass,scss}', '!_*/**'],
dest: 'dist/simple/css/',
dest: 'dist/simple/assets/css/',
ext: '.css'
}]
}
Expand All @@ -95,8 +95,8 @@ module.exports = (grunt) => {
},
assets: {
cwd: 'frontend/simple/assets',
src: ['**/*'],
dest: 'dist/simple',
src: ['**/*', '!sass/**'],
dest: 'dist/simple/assets',
expand: true
}
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Group Income Simple</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="simple/css/main.css">
<link rel="stylesheet" href="simple/assets/css/main.css">
<link rel="icon" href="/simple/images/group-income-icon-transparent.png" sizes="32x32">
</head>
<body class="hero is-fullheight">
Expand Down
4 changes: 2 additions & 2 deletions frontend/simple/assets/sass/page-specific-example.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// page specific
// this will create:
// - dist/simple/css/page-specific-example.css
// - dist/simple/css/page-specific-example.css.map (during development only)
// - dist/simple/assets/css/page-specific-example.css
// - dist/simple/assets/css/page-specific-example.css.map (during development only)
//
// TODO: verify that injecting CSS works
// TODO: figure out the best way to integrate this with browserify
Expand Down
2 changes: 1 addition & 1 deletion frontend/simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Group Income Simple</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/simple/css/main.css">
<link rel="stylesheet" href="/simple/assets/css/main.css">
<link rel="icon" href="/simple/images/group-income-icon-transparent.png" sizes="32x32">
</head>
<body>
Expand Down

0 comments on commit e021676

Please sign in to comment.