-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously the CSS was simply scoped to `.vuetify-styles` in `@mariobuikhuizen/vuetify` JS-package. We moved the scoping to be here to be closer to the rest of the relevant code. The scoping is now also done based using the `:where` CSS selector, since this has no impact on specificity, meaning that Vuetify CSS should be less likely to override other styles unexpectedly.
- Loading branch information
1 parent
706f82c
commit 713c406
Showing
8 changed files
with
3,520 additions
and
6,151 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const autoprefixer = require("autoprefixer"); | ||
const scopify = require("postcss-scopify"); | ||
|
||
module.exports = (ctx) => ({ | ||
plugins: [ | ||
autoprefixer({ | ||
remove: false, | ||
}), | ||
scopify({ | ||
scope: ":where(.vuetify-styles)", | ||
exclude: [".vuetify-styles", "html", "body", ":root"], | ||
}), | ||
], | ||
}); |
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
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
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,9 +1,19 @@ | ||
var path = require("path"); | ||
|
||
const rules = [ | ||
{ | ||
test: /\.css$/, | ||
use: ["postcss-loader"], | ||
}, | ||
]; | ||
|
||
module.exports = { | ||
resolve: { | ||
alias: { | ||
vue$: path.resolve(__dirname, "lib", "vue_alias"), | ||
}, | ||
}, | ||
module: { | ||
rules: rules, | ||
}, | ||
}; |