Skip to content

Commit e239eb8

Browse files
author
Andrew Welch
committed
broken-tailwind-2.x checkin
1 parent 6624ace commit e239eb8

File tree

6 files changed

+31
-30
lines changed

6 files changed

+31
-30
lines changed

buildchain/webpack-settings/app.settings.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ module.exports = {
1111
entry: {
1212
'app': [
1313
'../src/js/app.ts',
14-
'../src/css/app.pcss',
14+
'../src/css/app-base.pcss',
15+
'../src/css/app-components.pcss',
16+
'../src/css/app-utilities.pcss',
1517
],
1618
},
1719
extensions: ['.ts', '.js', '.vue', '.json'],

src/css/app-base.pcss

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* This injects Tailwind's base styles, which is a combination of
3+
* Normalize.css and some additional base styles.
4+
*/
5+
@import 'tailwindcss/base';
6+
7+
/**
8+
* Here we add custom base styles, applied after the tailwind-base
9+
* classes
10+
*
11+
*/
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
/**
2-
* app.css
3-
*
4-
* The entry point for the css.
5-
*
6-
*/
7-
8-
/**
9-
* This injects Tailwind's base styles, which is a combination of
10-
* Normalize.css and some additional base styles.
11-
*/
12-
@import "tailwindcss/base";
13-
141
/**
152
* This injects any component classes registered by plugins.
163
*
@@ -32,16 +19,3 @@
3219
*
3320
*/
3421
@import './pages/homepage.pcss';
35-
36-
/**
37-
* This injects all of Tailwind's utility classes, generated based on your
38-
* config file.
39-
*
40-
*/
41-
@import 'tailwindcss/utilities';
42-
43-
/**
44-
* Include vendor css.
45-
*
46-
*/
47-
@import 'vendor.pcss';

src/css/app-utilities.pcss

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* This injects all of Tailwind's utility classes, generated based on your
3+
* config file.
4+
*
5+
*/
6+
@import 'tailwindcss/utilities';
7+
8+
/**
9+
* Include vendor css.
10+
*
11+
*/
12+
@import 'vendor.pcss';

src/css/components/global.pcss

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
*
66
*/
77

8+
.my-cool-class {
9+
@apply pt-4 mb-2 text-lg
10+
}
11+
812
body {
13+
@apply my-cool-class
914
background-color: orange;
1015
}

src/js/app.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Import our CSS
2-
import '../css/app.pcss';
3-
41
import App from "../vue/App.vue";
52

63
// App main

0 commit comments

Comments
 (0)