"staticFiles": {
"staticPath": "static"
}
Static 폴더 안의 정적 파일들은 Parcel-plugin-static-files-copy
을 통해서 dist 디렉토리에 컴파일될 수 있다.
npm i -D postcss autoprefixer
를 통해서 postcss, autoprefixer 두개의 모듈을 설치한 다음
"browserslist": [
"> 1%", // 점유율 1% 이상인 모든 브라우저의
"last 2 versions" // 최근 2개의 버전까지는 지원을 하겠다.
]
-> 이렇게 하면 CSS 속성에 특정 기술에 해당하는 접두사가 생성되게 된다.
const autoprefixer = require("autoprefixer");
module.exports = {
plugins: [autoprefixer],
};
이후 CSS 속성에 display: flex;를 주고, Parcel로 번들링을 실행하면,
body h1 {
color: #fff;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
이렇게 자동으로 -webkit-box, -ms-flexbox가 생성되게 된다.