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

Laravel Mix 6 support #90

Merged
merged 8 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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