Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NPM and Grunt #6

Open
4 tasks done
cy2201 opened this issue May 16, 2021 · 1 comment
Open
4 tasks done

Update NPM and Grunt #6

cy2201 opened this issue May 16, 2021 · 1 comment

Comments

@cy2201
Copy link

cy2201 commented May 16, 2021

Make sure these boxes are checked before submitting your issue.

  • You are using this for WordPress.
  • You have Divi installed.
  • You have lint your code to ensure the problem isn't caused by your code.
  • You have already searched the GitHub issues and it has not been reported before.

Hi, this repository wasn't updated since years. To make it easier for the community please update the packages for NPM / Grunt so we can start easily to develope websites. Otherwise a lot people have to update the npm package versions before they can start instead of one of your team updates this repo once. Thanks.

@cy2201 cy2201 closed this as completed May 16, 2021
@cy2201 cy2201 changed the title Update NPM and Grund Update NPM and Grunt May 16, 2021
@cy2201 cy2201 reopened this May 16, 2021
@cy2201
Copy link
Author

cy2201 commented May 16, 2021

Specifically, I have problems getting grunt up and running.

When I run grunt, I got: "Replace Autoprefixer browsers option to Browserslist config. Use browserslist key in package.json or .browserslistrc file."

What I already did:
npm update and npm install <package-name>@latest

npm install grunt-wakeup@latest

Then I added

  "browserslist": [
    "defaults",
    "not IE 11",
    "maintained node versions"
  ]

to package.json.

And I changed this

    postcss:
      dev:
        options:
          map: true,
          processors: [
            require('autoprefixer')({
              browsers: ['last 2 versions']
            })
          ]

        src: 'style.css'

      dist:
        options:
          map: false,
          processors: [
            require('autoprefixer')({
              browsers: ['last 6 versions']
            })
          ]

        src: 'style.css'

to

    postcss:
      dev:
        options:
          map: true,
          processors: [
            require('autoprefixer')()
          ]
        src: 'style.css'

      dist:
        options:
          map: false,
          processors: [
            require('autoprefixer')()
          ]
        src: 'style.css'

in Gruntfile.coffee.

I have no more errors but Autoprefixer doesn't do his job. I got a warning "Warning: [object Object] is not a PostCSS plugin Use --force to continue." It seems, my changes are not correct.

Can you help me or commit a new working version of this child theme?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant