Skip to content

Commit 2be0eb7

Browse files
authored
Merge pull request microsoft#91 from Microsoft/ianc/webpack2-fixes
Fixing the paths generated by GCB-sass to be compatible with Webpack 2.X.
2 parents 051be16 + 44ae540 commit 2be0eb7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/gulp-core-build-sass",
5+
"comment": "Fixing the paths generated by GCB-sass to be compatible with Webpack 2.X",
6+
"type": "patch"
7+
}
8+
],
9+
"email": "iclanton@users.noreply.github.com"
10+
}

gulp-core-build-sass/src/SassTask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class SassTask extends GulpTask<ISassTaskConfig> {
208208

209209
if (this.taskConfig.dropCssFiles) {
210210
lines = lines.concat([
211-
`require('${path.basename(file.path, scssTsExtName)}.css');`,
211+
`require('./${path.basename(file.path, scssTsExtName)}.css');`,
212212
exportClassNames
213213
]);
214214
} else if (!!content) {

0 commit comments

Comments
 (0)