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 723B

12345678910111213141516171819202122232425262728293031323334353637
  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. assetsDir,
  10. nodeModulesDir,
  11. ],
  12. "relativeUrls": true,
  13. "engines": {
  14. "sass": require("sass"),
  15. }
  16. }
  17. const eyeglass = new Eyeglass({
  18. eyeglass: {
  19. assets: {
  20. httpPrefix: '/~/core/assets/',
  21. sources: [
  22. {
  23. directory: assetsDir
  24. },
  25. {
  26. directory: nodeModulesDir
  27. },
  28. ]
  29. },
  30. buildDir
  31. },
  32. ...options
  33. });
  34. module.exports = eyeglass.sassOptions();