How can I setup webpack to minify and combine scss and javascript like CodeKit?

Introduction Webpack is mainly a JavaScript-bundler. Its “native” language is JavaScript and every other source requires a loader which transforms it to JavaScript. If you require() an html-file for example… var template = require(“./some-template.html”); …you’ll need the html-loader. It turns… <div> <img src=”https://stackoverflow.com/questions/26851120/./assets/img.png”> </div> …into… module.exports = “<div>\n <img src=\”” + require(“https://stackoverflow.com/questions/26851120/./assets/img.png”) + “\”>\n</div>”; If … Read more

Cannot run Mocha with CoffeeScript

As of Mocha 1.0: coffee-script is no longer supported out of the box. CS and similar transpilers may be used by mapping the file extensions (for use with –watch) and the module name. For example –compilers coffee:coffee-script with CoffeeScript 1.6- or –compilers coffee:coffee-script/register with CoffeeScript 1.7+. (Quoting http://visionmedia.github.io/mocha/#compilers-option) So, you need to add the line … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)