Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Custom compiler works only on generate #131

Open
alexmakeev opened this issue Dec 1, 2016 · 4 comments
Open

Custom compiler works only on generate #131

alexmakeev opened this issue Dec 1, 2016 · 4 comments

Comments

@alexmakeev
Copy link

alexmakeev commented Dec 1, 2016

No compilation during development (even at first launch without output folder).

Have not found documented config to fix it.

My config:

{
	"template_dir": "templates", 
	"content_dir": "contents",
	"output_dir": "output",

	"server": { 
		"port": 9009
	},

  "generator": {
    "blank": true
  },
	"bundles": {
		"css/all.css": [
			"css/common.css",
			"css/main.css"
		],
    "js/ractive.runtime.min.js": [
      "js/ractive.runtime.js"
    ],
		"js/all.js": [
			"js/src_link.js"
		]
	},

  "plugins": {
    "compilers": {
      ".js": "./compilers/browserify_compiler.js"
    }
  }
}

@jssee
Copy link

jssee commented Jan 24, 2017

Same thing happening to me, not sure what is causing it since my config is so simple. It will not compile stylus correctly:

	"template_dir": "templates",
	"content_dir": "contents",
	"output_dir": "public",

	"server": {
		"port": 9009,
		"generate_interval": 5000,
		"serving_only": false
	},

	"asset_bundling": {
	    "fingerprint": false
	},

	"bundles": {
		"public/css/all.css": [
			"/css/master.styl"
		]
	},

	"plugins":{
		"compilers": {
			".css": "punch-stylus-compiler"
		}
	}
}

@jssee
Copy link

jssee commented Jan 24, 2017

I think it has something to do with bundler. It seems to compile the styles into the public directory, but then not render them on localhost.

@laktek
Copy link
Owner

laktek commented Jan 26, 2017

This looks like a bug, I will try to allocate some time next week to fix it.

@jssee
Copy link

jssee commented Jan 27, 2017

@laktek I went and took at look at the stylus compiler and the sass compiler for punch and neither have the force_compile option set to true as mentioned in the punch wiki here:
https://github.com/laktek/punch/wiki/Adding-Pre-Compilers

could possibly be the issue thats stopping changes to render while in development mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants