0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

nuxt.jsを立ち上げた

Posted at

nuxt.jsの環境構築

$ npx create-nuxt-app nuxt-app

ですぐ環構築ができた!
*node.jsが入っている前提。

次にTailwind CSSを導入してみた。

$npx tailwindcss init

でtailwind.config.jsを作成。

purge: [
    './components/**/*.{vue,js}',
    './layouts/**/*.vue',
    './pages/**/*.vue',
    './plugins/**/*.{js,ts}',
    './nuxt.config.{js,ts}',
  ],

tailwind.config.jsに上記を記載。

そしてassetsの中にcss/tailwind.cssを作成し下記を記述.

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

これでもう一度$npm run devしたらTailwindが使えた!!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?