Skip to content
Open
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
5 changes: 4 additions & 1 deletion wp1-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@
"autoprefixer": {}
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"devDependencies": {
"tailwindcss": "2.2.19"
}
}
3 changes: 3 additions & 0 deletions wp1-frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 3 additions & 0 deletions wp1-frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap-icons/font/bootstrap-icons.css';

// config for tailwind migration, not actually used in the project yet
// import './index.css';

import 'jquery';
import 'datatables.net';
import 'datatables.net-dt/css/jquery.dataTables.min.css';
Expand Down
11 changes: 11 additions & 0 deletions wp1-frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: false,
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
8 changes: 8 additions & 0 deletions wp1-frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export default defineConfig({
jQuery: 'jquery',
}),
],
css: {
postcss: {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
Expand Down
Loading
Loading