0
preact-cli를 사용하여 앱을 만들었습니다. webpack의 일부 구성을 변경하고 싶습니다. 나는 preact.config.js를 생성하고 '--config'를 통해 'preact build'에 전달했습니다. preact.config.js에이 코드를 추가하여 '힌트'를 해제했습니다.preact-cli의 웹팩 구성
export default function (config, env, helpers) {
helpers.webpack.performance.hints= "warning";
}
오류가 발생했습니다 : Cannot set property 'hints' of undefined
. 구성 매개 변수로 performance.hints= "warning"
이 webpack으로 전달 될 것으로 예상됩니다.