-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependency upgrades broke the css-loader options in vue.config.js, that provided variables and mixins access for all files. This is solved by using style-resources-loader instead.
- Loading branch information
1 parent
ec89747
commit 3cf333a
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
const path = require('path') | ||
|
||
module.exports = { | ||
css: { | ||
loaderOptions: { | ||
sass: { | ||
data: `@import "@/styles/_variables.scss"; @import "@/styles/_mixins.scss";` | ||
} | ||
} | ||
}, | ||
pwa: { | ||
name: "Wingspan Helper", | ||
themeColor: "#cae6f3", | ||
msTileColor: "#cae6f3", | ||
assetsVersion: "1.0", | ||
name: 'Wingspan Helper', | ||
themeColor: '#cae6f3', | ||
msTileColor: '#cae6f3', | ||
assetsVersion: '1.0', | ||
iconPaths: { | ||
favicon32: 'img/icons/favicon-32x32.png', | ||
favicon16: 'img/icons/favicon-16x16.png', | ||
appleTouchIcon: 'img/icons/icon-152x152.png', | ||
maskIcon: 'img/icons/maskable-icon.svg', | ||
msTileImage: 'img/icons/icon-144x144.png' | ||
} | ||
}, | ||
|
||
pluginOptions: { | ||
'style-resources-loader': { | ||
preProcessor: 'scss', | ||
patterns: [ | ||
path.resolve(__dirname, 'src/styles/_variables.scss'), | ||
path.resolve(__dirname, 'src/styles/_mixins.scss') | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3cf333a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: