forked from datenanfragen/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
32 lines (31 loc) · 1.03 KB
/
postcss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require('path');
module.exports = (ctx) => {
return {
plugins: [
require('postcss-fonticons')({
iconPath: path.resolve(__dirname, 'assets/icons/'),
enforcedTimestamp: 1528942455,
}),
require('postcss-preset-env')({
browsers: ['last 2 versions', '> 5%'],
}),
require('cssnano')({}),
require('postcss-url')([
{
filter: /\.svg/,
basePath: path.resolve(__dirname, 'assets/'),
url: 'inline',
optimizeSvgEncode: true,
},
{
filter: /\.(png|jpg|gif|eot|ttf|woff|woff2)$/,
basePath: path.resolve(__dirname, 'assets/'),
maxSize: 10,
fallback: 'copy',
assetsPath: path.resolve(__dirname, 'public/img'),
useHash: true,
},
]),
],
};
};