forked from ccsens_fe/tall-mui-3
9 changed files with 26 additions and 157 deletions
@ -1,38 +1,21 @@ |
|||||
const path = require('path'); |
const path = require('path'); |
||||
|
|
||||
module.exports = { |
module.exports = { |
||||
parser: require('postcss-comment'), |
parser: require('postcss-comment'), |
||||
plugins: [ |
plugins: [ |
||||
require('postcss-import')({ |
require('postcss-import')({ |
||||
resolve(id, basedir, importOptions) { |
resolve(id, basedir, importOptions) { |
||||
if (id.startsWith('~@/')) { |
if (id.startsWith('~@/')) { |
||||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)); |
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)); |
||||
} else if (id.startsWith('@/')) { |
} else if (id.startsWith('@/')) { |
||||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)); |
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)); |
||||
} else if (id.startsWith('/') && !id.startsWith('//')) { |
} else if (id.startsWith('/') && !id.startsWith('//')) { |
||||
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)); |
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)); |
||||
} |
} |
||||
return id; |
return id; |
||||
}, |
}, |
||||
}), |
}), |
||||
// require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }),
|
require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }), |
||||
require('@dcloudio/vue-cli-plugin-uni/packages/postcss'), |
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, |
|
||||
}), |
|
||||
] |
|
||||
) |
|
||||
], |
|
||||
}; |
|
||||
|
@ -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