Skip to content

Instantly share code, notes, and snippets.

@willyarisky
Forked from tofikhidayatxyz/package.json
Created September 7, 2020 15:41
Show Gist options
  • Save willyarisky/7a4e5f756eec0b03f297c2233a1ccda9 to your computer and use it in GitHub Desktop.
Save willyarisky/7a4e5f756eec0b03f297c2233a1ccda9 to your computer and use it in GitHub Desktop.
Simpe laravelmix config for auto prefixer
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,
}
});
{
"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