-
-
Save willyarisky/7a4e5f756eec0b03f297c2233a1ccda9 to your computer and use it in GitHub Desktop.
Simpe laravelmix config for auto prefixer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
require('laravel-mix-purgecss'); | |
require('laravel-mix-polyfill'); | |
const path = require('path') | |
mix.options({ | |
processCssUrls: false, // enable this if need auto process css url | |
postCss: [ | |
require('autoprefixer')({ | |
cascade: false, | |
grid: true, | |
}) | |
] | |
}) | |
mix.polyfill({ | |
enabled: true, | |
useBuiltIns: 'usage', | |
corejs: 3, | |
targets: { | |
'firefox': 50, | |
'ie': 11, | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"browserslist": [ | |
"> 1%", | |
"last 40 versions" | |
], | |
"devDependencies": { | |
"laravel-mix-polyfill": "^2.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment