Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(windicss): upgrade templates for v2 #876

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"nuxt-windicss": "^1.2.3"
"nuxt-windicss": "^2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from '@windicss/plugin-utils'

export default defineConfig({
/**
* Write windi classes in html attributes.
* @see https://windicss.org/features/attributify.html
*/
attributify: true,
})
2 changes: 1 addition & 1 deletion packages/cna-template/template/nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'@nuxtjs/stylelint-module',
<%_ } _%>
<%_ if (ui === 'windicss') { _%>
'nuxt-windicss',
'nuxt-windicss',
<%_ } _%>
<%_ if (ui === 'tailwind') { _%>
// https://go.nuxtjs.dev/tailwindcss
Expand Down
5 changes: 3 additions & 2 deletions packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,7 @@ Generated by [AVA](https://avajs.dev).
'pages/index.vue',
'static/favicon.ico',
'store/README.md',
'windi.config.ts',
]

> package.json
Expand All @@ -1357,7 +1358,7 @@ Generated by [AVA](https://avajs.dev).
nuxt: '^2.15.8',
},
devDependencies: {
'nuxt-windicss': '^1.2.3',
'nuxt-windicss': '^2',
},
private: true,
scripts: {
Expand Down Expand Up @@ -1401,7 +1402,7 @@ Generated by [AVA](https://avajs.dev).
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules␊
buildModules: [␊
'nuxt-windicss',␊
'nuxt-windicss',␊
],␊
// Modules: https://go.nuxtjs.dev/config-modules␊
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.