Skip to content

Commit

Permalink
Merge pull request #90 from spatie/next
Browse files Browse the repository at this point in the history
Laravel Mix 6 support
  • Loading branch information
sebastiandedeyne committed Dec 21, 2020
2 parents 1945f8d + 60e9545 commit 70b7ca7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion __test__/__snapshots__/integration.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`it purges css 1`] = `".bg-blue{background-color:#00f}.is-active{background-color:green}.p-2\\\\.5{padding:2.5rem}"`;
exports[`it purges css 1`] = `
".bg-blue{background-color:#00f}.is-active{background-color:green}.p-2\\\\.5{padding:2.5rem}
"
`;
7 changes: 4 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"private": true,
"scripts": {
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"dependencies": {
"cross-env": "^7.0.0",
"laravel-mix": "^5.0.1",
"laravel-mix-purgecss": "file:.."
"laravel-mix": "^6.0.0",
"laravel-mix-purgecss": "file:..",
"postcss": "^8.1.2"
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mix.extend(

mix.options({
postCss: [
...mix.config.postCss,
...global.Config.postCss,
require("postcss-purgecss-laravel")(this.config),
],
});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laravel-mix-purgecss",
"version": "5.0.0",
"version": "6.0.0",
"description": "PurgeCSS wrapper for Laravel Mix",
"main": "index.js",
"repository": {
Expand All @@ -25,14 +25,14 @@
"build-example": "./build-example.sh"
},
"dependencies": {
"postcss-purgecss-laravel": "^0.1.1"
"postcss-purgecss-laravel": "^2.0.0"
},
"devDependencies": {
"jest": "^25.4.0",
"prettier": "^2.0.5"
},
"peerDependencies": {
"laravel-mix": "^5.0.1"
"laravel-mix": "^6.0.0"
},
"engines": {
"node": ">=12.0.0"
Expand Down

0 comments on commit 70b7ca7

Please sign in to comment.