Skip to content

Commit

Permalink
Add hexrgba postcss plugin to barrel-cli, update example configs
Browse files Browse the repository at this point in the history
  • Loading branch information
wturnerharris committed Mar 13, 2018
1 parent fd57591 commit 8537127
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = {
]
}),
require('precss'),
require('postcss-hexrgba'),
require('postcss-automath')
]
}
Expand Down
8 changes: 6 additions & 2 deletions examples/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
},
output: {
path: path.join(__dirname, 'assets'),
filename: '[name].js'
filename: '[name].min.js'
},
module: {
rules: [
Expand All @@ -28,10 +28,14 @@ module.exports = {
extract: true,
use: [
'style-loader',
'css-loader?importLoaders=1',
'css-loader?importLoaders=1&minimize=1',
'postcss-loader'
]
},
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
loader: 'file-loader?name=/fonts/[name].[ext]'
}
]
},
resolve: {
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@
"moment-timezone": "^0.5.13",
"node-sass": "^4.5.3",
"node-watch": "^0.5.5",
"postcss-automath": "^1.0.1",
"postcss-color-function": "^4.0.0",
"postcss-extend": "^1.0.5",
"postcss-fontpath": "^1.0.0",
"postcss-hexrgba": "^1.0.0",
"postcss-import": "^10.0.0",
"postcss-inline-svg": "^3.0.0",
"postcss-loader": "^2.0.6",
"postcss-import": "^10.0.0",
"postcss-sassy-mixins": "^2.1.0",
"postcss-scss": "^1.0.3",
"postcss-automath": "^1.0.1",
"precss": "^2.0.0",
"rimraf": "^2.6.2",
"sass-loader": "^6.0.6",
Expand Down

0 comments on commit 8537127

Please sign in to comment.