Skip to content

Commit

Permalink
update webpack config, add scss util import
Browse files Browse the repository at this point in the history
  • Loading branch information
mizok committed Apr 4, 2022
1 parent 204b129 commit 3856852
Show file tree
Hide file tree
Showing 7 changed files with 7,633 additions and 20 deletions.
7,628 changes: 7,628 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions src/examples/ex1.ejs

This file was deleted.

9 changes: 0 additions & 9 deletions src/examples/ex2.ejs

This file was deleted.

Empty file removed src/scss/examples/ex1.scss
Empty file.
Empty file removed src/scss/examples/ex2.scss
Empty file.
5 changes: 4 additions & 1 deletion src/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import 'util/main';

html,
body {
height: 100%;
}
}

2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const getEntriesByParsingTemplateNames = (templatesFolderName,atRoot = true)=>{
entryStyleSheetPath = fs.existsSync(entryStyleSheetPath)?entryStyleSheetPath:undefined;

// import es6-promise and scss util automatically
entryObj[entryName] = ['es6-promise/auto',entryPath, './src/scss/util/main.scss',entryStyleSheetPath].filter(function (x: string | undefined) {
entryObj[entryName] = ['es6-promise/auto',entryPath,entryStyleSheetPath].filter(function (x: string | undefined) {
return x !== undefined;
});

Expand Down

0 comments on commit 3856852

Please sign in to comment.