🚀 feat: postcss

This commit is contained in:
shenyu 2020-03-02 19:32:14 +08:00
parent bc0119d821
commit eaf683440a
6 changed files with 42 additions and 31 deletions

5
.postcssrc Normal file
View File

@ -0,0 +1,5 @@
{
"plugins": {
"autoprefixer": true
}
}

View File

@ -4,7 +4,7 @@
"description": "a clean and elegant theme for hexo.", "description": "a clean and elegant theme for hexo.",
"scripts": { "scripts": {
"dev": "parcel serve source-src/main.js -d source/css", "dev": "parcel serve source-src/main.js -d source/css",
"build": "parcel build source-src/main.js -d source/css --no-source-maps" "build": "parcel build source-src/main.js -d source/css"
}, },
"source": "source-src/main.js", "source": "source-src/main.js",
"repository": { "repository": {
@ -24,7 +24,9 @@
}, },
"homepage": ".", "homepage": ".",
"devDependencies": { "devDependencies": {
"parcel-bundler": "^1.12.4" "autoprefixer": "^9.7.4",
"parcel-bundler": "^1.12.4",
"postcss-modules": "^1.5.0"
}, },
"dependencies": {} "dependencies": {}
} }

File diff suppressed because one or more lines are too long

1
source/css/main.css.map Normal file

File diff suppressed because one or more lines are too long

View File

@ -3,3 +3,4 @@ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcel
},{}],"epB2":[function(require,module,exports) { },{}],"epB2":[function(require,module,exports) {
"use strict";require("./css/style.styl"); "use strict";require("./css/style.styl");
},{"./css/style.styl":"MiQR"}]},{},["epB2"], null) },{"./css/style.styl":"MiQR"}]},{},["epB2"], null)
//# sourceMappingURL=/main.js.map

1
source/css/main.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["main.js"],"names":[],"mappings":";;;AAAA,aAAA,QAAA","file":"main.js","sourceRoot":"..\\..\\source-src","sourcesContent":["import './css/style.styl'"]}