-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
30 lines (29 loc) · 797 Bytes
/
postcss.config.js
File metadata and controls
30 lines (29 loc) · 797 Bytes
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
const autoprefixer = require('autoprefixer');
const postcssimport = require('postcss-import');
const path = require('path');
const url = require("postcss-url");
const urlOptions = {
url: 'rebase',
basePath: path.resolve(__dirname, 'dist'),
assetsPath: '.'
};
const postcsssimplevars = require('postcss-simple-vars');
const postcssextend = require('postcss-extend');
const postcssnested = require('postcss-nested');
const postcssmixins = require('postcss-mixins');
const cssnano = require('cssnano');
module.exports = {
root: '/',
plugins: [
autoprefixer,
postcssimport,
url(urlOptions),
postcsssimplevars,
postcssextend,
postcssnested,
postcssmixins,
cssnano({
normalizeUrl: true
})
]
};