Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
472b282
commit f30efd2
Showing
4 changed files
with
1,386 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# blocks.css ignores | ||
dist/ | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
{ | ||
"name": "blocks.css", | ||
"version": "0.1.0", | ||
"description": "Add some dimension to your page with blocks", | ||
"main": "/src/blocks.css", | ||
"repository": "git@github.com:thesephist/blocks.css.git", | ||
"author": "Linus Lee <linus@thesephist.com>", | ||
"license": "MIT" | ||
"name": "blocks.css", | ||
"version": "0.1.0", | ||
"description": "Add some dimension to your page with blocks", | ||
"main": "/src/blocks.css", | ||
"repository": "git@github.com:thesephist/blocks.css.git", | ||
"author": "Linus Lee <linus@thesephist.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "rollup --config rollup.config.js", | ||
"clean": "git clean -fxd" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"devDependencies": { | ||
"rollup": "^1.15.1", | ||
"rollup-plugin-postcss": "^2.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import postcss from 'rollup-plugin-postcss' | ||
|
||
const bundleNames = [ | ||
'blocks', | ||
'reset', | ||
]; | ||
|
||
const configs = bundleNames.map(name => { | ||
return { | ||
input: `src/${name}.css`, | ||
output: { | ||
file: `dist/${name}.min.css`, | ||
format: 'es', | ||
}, | ||
plugins: [ | ||
postcss({ | ||
minimize: true, | ||
sourceMap: true, | ||
extract: true, | ||
modules: false, | ||
}), | ||
], | ||
} | ||
}); | ||
|
||
export default configs | ||
|
Oops, something went wrong.