mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
b50ae32834
* update framework to uni-app * fix: bug fix * fix: bug fix * 修改输出路径 * feat: publicPath * feat: manifest update * fix: cssEditor theme * fix: style * style: format code with prettier * fix: table style & copy style on the night mode * fix: upload image * fix: style Co-authored-by: yanglbme <szuyanglb@outlook.com>
23 lines
738 B
JavaScript
23 lines
738 B
JavaScript
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"),
|
|
],
|
|
};
|