Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

6 years ago
5 years ago
5 years ago
5 years ago
6 years ago
  1. let mix = require('laravel-mix');
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Mix Asset Management
  5. |--------------------------------------------------------------------------
  6. |
  7. | Mix provides a clean, fluent API for defining some Webpack build steps
  8. | for your Laravel application. By default, we are compiling the Sass
  9. | file for your application, as well as bundling up your JS files.
  10. |
  11. */
  12. mix.sass('src/all.scss', 'dist/crispy.css', {
  13. sassOptions: {
  14. includePaths: [
  15. 'node_modules/normalize-scss/sass'
  16. ]
  17. }
  18. })
  19. .sass('src/minimal.scss', 'dist/crispy_minimal.css', {
  20. sassOptions: {
  21. includePaths: [
  22. 'node_modules/normalize-scss/sass'
  23. ]
  24. }
  25. })
  26. .sass('src/example/styles.scss', 'dist/example/styles.css', {
  27. sassOptions: {
  28. includePaths: [
  29. 'node_modules/normalize-scss/sass',
  30. 'node_modules/reflex-grid/scss'
  31. ]
  32. }
  33. })
  34. .copy('assets/iconmoon/symbol-defs.svg', 'dist/example')
  35. .options({
  36. postCss: [
  37. require('postcss-css-variables')()
  38. ]
  39. });