Skip to content

Commit

Permalink
feat(nuxt): Use path alias for styles
Browse files Browse the repository at this point in the history
Use path alias to call styles (Nuxt 3.4)

BREAKING CHANGE: Works ONLY with Nuxt 3.4+
  • Loading branch information
pisandelli committed Apr 12, 2023
1 parent 85e33d1 commit ef0b771
Show file tree
Hide file tree
Showing 8 changed files with 4,261 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/BoxL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/BoxL.module.styl'
import Styles from '@/assets/styles/BoxL.module.styl'
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/CenterL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/CenterL.module.styl'
import Styles from '@/assets/styles/CenterL.module.styl'
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/ClusterL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @version 1.0.0
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/ClusterL.module.styl'
import Styles from '@/assets/styles/styles/ClusterL.module.styl'
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/ModalL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/ModalL.module.styl'
import Styles from '@/assets/styles/styles/ModalL.module.styl'
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/RowL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/RowL.module.styl'
import Styles from '@/assets/styles/styles/RowL.module.styl'
export default defineComponent({
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/StackL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
import { defineComponent, h } from 'vue'
import Styles from '../assets/styles/StackL.module.styl'
import Styles from '@/assets/styles/styles/StackL.module.styl'
export default defineComponent({
props: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-layout-compositions",
"version": "1.0.0",
"version": "1.1.0",
"description": "A library with some useful layout compositions components",
"main": "./nuxt.config.ts",
"type": "module",
Expand All @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/pisandelli/nuxt-layout-compositions#readme",
"devDependencies": {
"nuxt": "^3.3.3"
"nuxt": "^3.4.0"
},
"dependencies": {
"stylus": "^0.59.0"
Expand Down
4,253 changes: 4,253 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit ef0b771

Please sign in to comment.