🚀 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

@ -1,30 +1,32 @@
{ {
"name": "ayer", "name": "ayer",
"version": "1.0.0", "version": "1.0.0",
"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": {
"type": "git", "type": "git",
"url": "git+https://github.com/Shen-Yu/hexo-theme-ayer.git" "url": "git+https://github.com/Shen-Yu/hexo-theme-ayer.git"
}, },
"keywords": [ "keywords": [
"hexo", "hexo",
"theme", "theme",
"blog", "blog",
"ayer" "ayer"
], ],
"author": "Shen-Yu", "author": "Shen-Yu",
"license": "MIT License", "license": "MIT License",
"bugs": { "bugs": {
"url": "https://github.com/Shen-Yu/hexo-theme-ayer/issues" "url": "https://github.com/Shen-Yu/hexo-theme-ayer/issues"
}, },
"homepage": ".", "homepage": ".",
"devDependencies": { "devDependencies": {
"parcel-bundler": "^1.12.4" "autoprefixer": "^9.7.4",
}, "parcel-bundler": "^1.12.4",
"dependencies": {} "postcss-modules": "^1.5.0"
} },
"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

@ -2,4 +2,5 @@ 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'"]}