Replace Sass with PostCSS, include imports and nesting

This commit is contained in:
Oliver Davies 2018-10-25 00:24:22 +01:00
parent 347bbe20ba
commit 9633b980d5
36 changed files with 279 additions and 184 deletions

View file

@ -4,7 +4,7 @@ require('laravel-mix-purgecss');
require('laravel-mix-tailwind');
mix.disableNotifications()
.sass('assets/sass/app.sass', 'source/dist/css')
.postCss('assets/css/app.css', 'source/dist/css')
.js([
// 'node_modules/highlightjs/highlight.pack.js',
'node_modules/jquery/dist/jquery.js',
@ -19,4 +19,11 @@ mix.disableNotifications()
],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]
})
.options({
postCss: [
require('postcss-import')(),
require('postcss-nesting')(),
],
processCssUrls: false,
});