forked from ccsens_fe/tall-mui-3
9 changed files with 26 additions and 157 deletions
@ -1,38 +1,21 @@ |
|||
const path = require('path'); |
|||
|
|||
module.exports = { |
|||
parser: require('postcss-comment'), |
|||
plugins: [ |
|||
require('postcss-import')({ |
|||
resolve(id, basedir, importOptions) { |
|||
if (id.startsWith('~@/')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)); |
|||
} else if (id.startsWith('@/')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)); |
|||
} else if (id.startsWith('/') && !id.startsWith('//')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)); |
|||
} |
|||
return id; |
|||
}, |
|||
}), |
|||
// require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }),
|
|||
require('@dcloudio/vue-cli-plugin-uni/packages/postcss'), |
|||
require('tailwindcss')({ config: "./tailwind.config.js" }), |
|||
...( |
|||
process.env.UNI_PLATFORM !== 'h5' |
|||
? [ |
|||
require("postcss-class-rename")({ |
|||
"\\\\:": "--", |
|||
"\\\\/": "--", |
|||
"\\\\.": "--", |
|||
".:": "--", |
|||
"\\\*": "--", |
|||
}) |
|||
] : [ |
|||
require("autoprefixer")({ |
|||
remove: true, |
|||
}), |
|||
] |
|||
) |
|||
], |
|||
}; |
|||
const path = require('path'); |
|||
|
|||
module.exports = { |
|||
parser: require('postcss-comment'), |
|||
plugins: [ |
|||
require('postcss-import')({ |
|||
resolve(id, basedir, importOptions) { |
|||
if (id.startsWith('~@/')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)); |
|||
} else if (id.startsWith('@/')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)); |
|||
} else if (id.startsWith('/') && !id.startsWith('//')) { |
|||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)); |
|||
} |
|||
return id; |
|||
}, |
|||
}), |
|||
require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }), |
|||
require('@dcloudio/vue-cli-plugin-uni/packages/postcss'), |
|||
], |
|||
}; |
|||
|
@ -1,6 +0,0 @@ |
|||
/* ./src/common/styles/index.css */ |
|||
|
|||
/*! @import */ |
|||
@tailwind base; |
|||
@tailwind components; |
|||
@tailwind utilities; |
@ -1,30 +0,0 @@ |
|||
const colors = require('tailwindcss/colors'); |
|||
|
|||
module.exports = { |
|||
// purge: ['./public/index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
|
|||
darkMode: false, // or 'media' or 'class'
|
|||
theme: { |
|||
extend: {}, |
|||
colors: { |
|||
blue: colors.sky, |
|||
gray: colors.blueGray, |
|||
red: colors.red, |
|||
orange: colors.orange, |
|||
yellow: colors.yellow, |
|||
green: colors.green, |
|||
pink: colors.rose, |
|||
white: colors.white, |
|||
black: '#333', |
|||
transparent: 'transparent', |
|||
}, |
|||
}, |
|||
variants: { extend: {} }, |
|||
plugins: [], |
|||
corePlugins: { |
|||
space: false, |
|||
divideWidth: false, |
|||
divideColor: false, |
|||
divideStyle: false, |
|||
divideOpacity: false, |
|||
}, |
|||
}; |
Loading…
Reference in new issue