An IndieWeb engine for a self-hostable website. https://koype.net/
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.

.sassrc.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. const path = require('path')
  2. const CWD = process.cwd()
  3. const Eyeglass = require('eyeglass');
  4. var assetsDir = path.join(CWD, "web", "static");
  5. var nodeModulesDir = path.join(CWD, "node_modules");
  6. var buildDir = path.join(CWD, "priv", "static", "assets");
  7. const options = {
  8. "includePaths": [
  9. path.join(nodeModulesDir, 'typeface-open-sans'),
  10. path.join(nodeModulesDir, 'typeface-crimson-text'),
  11. path.join(nodeModulesDir, 'typeface-source-code-pro'),
  12. assetsDir,
  13. nodeModulesDir,
  14. path.join(nodeModulesDir, 'leaflet', 'dist'),
  15. ],
  16. "relativeUrls": false,
  17. "engines": {
  18. "sass": require("sass"),
  19. }
  20. }
  21. const eyeglass = new Eyeglass({
  22. eyeglass: {
  23. assets: {
  24. httpPrefix: '/~/core/assets/',
  25. sources: [
  26. {
  27. directory: assetsDir
  28. },
  29. {
  30. directory: nodeModulesDir
  31. },
  32. {
  33. directory: path.join(nodeModulesDir, 'typeface-open-sans')
  34. },
  35. {
  36. directory: path.join(nodeModulesDir, 'typeface-crimson-text')
  37. },
  38. {
  39. directory: path.join(nodeModulesDir, 'typeface-source-code-pro')
  40. }
  41. ]
  42. },
  43. buildDir
  44. },
  45. ...options
  46. });
  47. module.exports = eyeglass.sassOptions();