2
0
mirror of https://github.com/frappe/books.git synced 2025-01-12 19:06:38 +00:00

fix: Add postcss and tailwind

This commit is contained in:
Faris Ansari 2019-10-03 19:16:57 +05:30
parent b0e572b16c
commit e0c6a1a411
2 changed files with 15 additions and 2 deletions

View File

@ -64,7 +64,11 @@
"vue-template-compiler": "^2.6.10", "vue-template-compiler": "^2.6.10",
"webpack": "^4.16.1", "webpack": "^4.16.1",
"webpack-dev-server": "^3.1.4", "webpack-dev-server": "^3.1.4",
"webpack-hot-middleware": "^2.22.3" "webpack-hot-middleware": "^2.22.3",
"csvjson-csv2json": "5.0.6",
"postcss-loader": "3.0.0",
"tailwindcss": "1.1.1",
"autoprefixer": "9.6.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -59,7 +59,16 @@ function makeConfig() {
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: ['vue-style-loader', 'css-loader'] use: ['vue-style-loader', 'css-loader', {
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
}]
}, },
{ {
test: /\.scss$/, test: /\.scss$/,