Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gruntjs/grunt-contrib-cssmin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5404a77deac19cbd5f2c8f5ae3a04265c4631bfd
Choose a base ref
...
head repository: gruntjs/grunt-contrib-cssmin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3ff36359f331acbd0d6f7f03ee4d546c106d1729
Choose a head ref
  • 13 commits
  • 15 files changed
  • 5 contributors

Commits on Jul 27, 2017

  1. Use new rebase configuration for clean-css@4 (#296)

    The options target and relativeTo have been replaced by rebaseTo.
    jorrit authored and XhmikosR committed Jul 27, 2017
    Copy the full SHA
    eb66929 View commit details
  2. v2.2.1.

    XhmikosR committed Jul 27, 2017
    Copy the full SHA
    07bf23c View commit details

Commits on Sep 6, 2018

  1. Copy the full SHA
    142e850 View commit details
  2. v3.0.0.

    XhmikosR committed Sep 6, 2018
    Copy the full SHA
    052b0cb View commit details

Commits on Oct 23, 2019

  1. Bump lodash from 4.17.10 to 4.17.15

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.10...4.17.15)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 23, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    866523c View commit details
  2. Merge pull request #302 from gruntjs/dependabot/npm_and_yarn/lodash-4…

    ….17.15
    
    Bump lodash from 4.17.10 to 4.17.15
    vladikoff authored Oct 23, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6d57138 View commit details

Commits on Sep 14, 2020

  1. Bump underscore.string from 3.3.4 to 3.3.5 (#303)

    Bumps [underscore.string](https://github.com/epeli/underscore.string) from 3.3.4 to 3.3.5.
    - [Release notes](https://github.com/epeli/underscore.string/releases)
    - [Changelog](https://github.com/epeli/underscore.string/blob/master/CHANGELOG.markdown)
    - [Commits](esamattis/underscore.string@3.3.4...3.3.5)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 14, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    efa725b View commit details
  2. Bump lodash from 4.17.15 to 4.17.19 (#305)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](lodash/lodash@4.17.15...4.17.19)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 14, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e6dc6f8 View commit details

Commits on Feb 15, 2021

  1. Copy the full SHA
    83b0c2f View commit details
  2. Copy the full SHA
    5c05f6b View commit details
  3. Adds "no rebase" test case.

    jakubpawlowicz authored and XhmikosR committed Feb 15, 2021
    Copy the full SHA
    f8b6a7b View commit details
  4. Copy the full SHA
    a62ac0e View commit details
  5. v4.0.0.

    XhmikosR committed Feb 15, 2021
    Copy the full SHA
    3ff3635 View commit details
Showing with 4,091 additions and 70 deletions.
  1. +39 −0 .github/workflows/test.yml
  2. +0 −15 .travis.yml
  3. +14 −0 CHANGELOG
  4. +1 −1 CONTRIBUTING.md
  5. +18 −2 Gruntfile.js
  6. +6 −3 README.md
  7. +0 −35 appveyor.yml
  8. +3,973 −0 package-lock.json
  9. +11 −11 package.json
  10. +3 −3 tasks/cssmin.js
  11. +1 −0 test/expected/no-rebase.css
  12. +1 −0 test/expected/rebase.css
  13. +3 −0 test/fixtures/no-rebase.css
  14. +3 −0 test/fixtures/rebase.css
  15. +18 −0 test/test.js
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test

# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- name: Run PowerShell tests
run: "npm test # PowerShell" # Pass comment to PS for easier debugging
shell: powershell
if: startsWith(matrix.os, 'windows')
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
v4.0.0:
date: 2021-02-15
changes:
- Update all dependencies including clean-css v5.x.
- Drop Node.js < 10 support.
v3.0.0:
date: 2018-09-07
changes:
- Update all dependencies.
- Drop Node.js < 6 support.
v2.2.1:
date: 2017-07-27
changes:
- Fix issue with `relativeTo` for clean-css v4.x.
v2.2.0:
date: 2017-05-10
changes:
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please see the [Contributing to grunt](http://gruntjs.com/contributing) guide for information on contributing to this project.
Please see the [Contributing to grunt](https://gruntjs.com/contributing) guide for information on contributing to this project.
20 changes: 18 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -53,6 +53,23 @@ module.exports = function (grunt) {
'test/fixtures/inner/input_inline_import.css'
]
}
},
noRebase: {
files: {
'tmp/no-rebase.css': [
'test/fixtures/no-rebase.css'
]
}
},
rebase: {
options: {
rebase: true
},
files: {
'tmp/rebase.css': [
'test/fixtures/rebase.css'
]
}
}
},
nodeunit: {
@@ -76,7 +93,6 @@ module.exports = function (grunt) {

grunt.registerTask('default', [
'test',
'contrib-core',
'contrib-ci:skipIfExists'
'build-contrib'
]);
};
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# grunt-contrib-cssmin v2.2.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-cssmin.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-cssmin) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/ntgfqc3ppk533m84/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-cssmin/branch/master)
# grunt-contrib-cssmin v4.0.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-cssmin/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-cssmin/actions?workflow=Tests)

> Minify CSS


## Getting Started

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
If you haven't used [Grunt](https://gruntjs.com/) before, be sure to check out the [Getting Started](https://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](https://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-contrib-cssmin --save-dev
@@ -86,6 +86,9 @@ cssmin: {

## Release History

* 2021-02-15   v4.0.0   Update all dependencies including clean-css v5.x. Drop Node.js < 10 support.
* 2018-09-07   v3.0.0   Update all dependencies. Drop Node.js < 6 support.
* 2017-07-27   v2.2.1   Fix issue with `relativeTo` for clean-css v4.x.
* 2017-05-10   v2.2.0   Update clean-css to v4.1.1.
* 2017-04-17   v2.1.0   Set required Node.js version to >=4 since clean-css 4.x requires that.
* 2017-02-02   v2.0.0   Update clean-css to v4.0.3.
@@ -120,4 +123,4 @@ cssmin: {

Task submitted by [Tim Branyen](http://tbranyen.com/)

*This file was generated on Wed May 10 2017 18:02:52.*
*This file was generated on Mon Feb 15 2021 07:31:26.*
35 changes: 0 additions & 35 deletions appveyor.yml

This file was deleted.

Loading