Размер css, отображаемый в консоли во время npm, отличается от реального файла в папке. - PullRequest
0 голосов
/ 11 апреля 2020

css размер, отображаемый в консоли во время npm, отличается от размера фактического файла в папке

enter image description here

enter image description here

пакет. json выглядит следующим образом

    {
  "name": "frontend",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "bootstrap": "^4.4.1",
    "next": "9.3.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "reactstrap": "^8.4.1"
  },
  "devDependencies": {
    "@zeit/next-css": "^1.0.1",
    "next-purgecss": "^4.0.0"
  }
}

next.config. js выглядит следующим образом

const withCss = require('@zeit/next-css')
const withPurgeCss = require('next-purgecss')

module.exports = withCss(withPurgeCss())
...