...shiny features, check the Babel 7 release blog post Webpack 4 also namespaces files compiled files inside a pack CSS files are stored inside css, JavaScripts inside js and images...

...Confirm everything works If you're using it, start bin/webpack-dev-server to see if Webpack compiles properly. Boot up rails server and check if your application responds and everything looks okay...

A Rake task appears in rake -T if it has a description: desc 'Compile assets' task :compile do ... end To not list it, simply omit the description: task :compile do...

...been defined by someone else (like a gem) by removing the description: Rake::Task['compile'].clear_comments Or you can whitelist which tasks should be listed: visible_tasks = %w(compile...

...ES6 javascript. 9. Achieve green tests. 10. Check if postcss, uglifier, babel and other compilers work for production. This can be done by compiling the packs for production and search...

...the Lemonade gem. To avoid this, have Sass watch the files for changes and compile them into CSS files immediately. The files will be created while you are still on...

...something else, allowing the first request to be served without a Sass compile. For plain Sass (no lemonade) run the following from your project directory: sass --watch public/stylesheets/sass:public/stylesheets

= gallery_form.submit Javascript Now to the dynamic part. I built it with an Unpoly compiler, but the code will work without as well. up.compiler '[gallery-form]', (element) -> imageTemplate = element.find('.gallery...

developer.mozilla.org

...it on an tag's src attribute: $('img').attr('src', URL.createObjectURL(this.files[0])) Unpoly Compiler As an Unpoly compiler, it looks like this: up.compiler '[image_preview]', (element, img_selector) ->

...I had to come up with my own. The Solution: I wrote an unpoly compiler that crawls the document and replaces all occurencies of certain word and puts a soft...

...import 'brace/mode/html' import 'brace/theme/monokai' let editor = ace.edit(element) ... Full-fledged example for an Unpoly compiler that will improve your : import ace from 'brace' import 'brace/mode/html' import 'brace/theme/monokai' up.compiler('[html-editor...

The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively. However, the consequences are startling if you don't understand...

...use (Unpoly's up.on, jQuery's .on, ...) and wrap the element selection into a compiler function...

Sometimes you will need an input field which wraps content and grows in height as soon as content gets longer...

...attributes like this: %a{href: '/path', data: { method: 'delete', confirm: 'Really delete?' }} Label This compiles to: Label Example: Unpoly attributes You might also want to use this to define multiple...

...prefixed by up-: %a{href: '/path', up: { target: '.element', transition: 'zoom-in' }} Label This compiles to:

I use the TypeScript compiler for this, since its output is more minimal than Babel's. The following will transpile all src/*.js files into a file build.js:

...to set a passphrase for the keystore and an alias to access your certificate. Compile it into a class file: javac ImportKey.java Run it to import your key and certificate...

makandra dev
blog.getbootstrap.com

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join an increasingly large community of Sass developers. Improved grid system...

...Sendfile, which is sort of bad practice. You can either live with it or compile a newer version of the module. If you got a module version >= 0.10 you can...

...multiple renderings of the same view. Example - @users.each do |user| .row[user] = user.name This compiles to: Alice Bob Since the record's #id is part of the generated selector, it...

...her session. After that only fragments are updated and the tag that sends the page view to Google Analytics is probably never evaluated again. Luckily you can fix this. Simple mode: You just want to track all the page views Embed your Google Analytics code as always. Now add the following code snippet: up.on('up:location:changed', function(event) { ga('set', 'page', location.pathname); ga('send', 'pageview'); }); Hard mode: You want more control over what's being tracked First, edit your Google Analytics code snippet and comment out the last line (ga('send', 'pageview')): (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-1234567', 'auto'); // ga('send', 'pageview'); // Don't send the pageview here Now add the following compiler: up.compiler('[track-for-analytics]', function($element) { var url = $element.attr('track-for-analytics') || location.pathname;

...are not a typo. It's to prevent Ruby from interpolating the string at compile time. Rails is aware of this hack and will perform interpolation at runtime.

...stylesheets in public/sass/*.sass) and relied on stylesheet_link_tag to activate the Sass compiler. Now all Sass-generated stylesheets inserted the following text into body:before: Encoding::CompatibilityError: incompatible...

Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc. If you want to keep tcmalloc functionality, you can do it like this:

...you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries, resulting in some warnings or even segfaults or other ruby errors...

...file: No such file or directory - /home/henning/.rvm/gems/ruby-1.8.7-p358/gems/mysql2-0.3.11/lib/mysql2/mysql2.so (Because the library which is used to compile the gem doesn't exist anymore and you have to recompile it...

...also works for any other hash attribute. Consider an Angular directive or an Unpoly compiler that is configured by several attributes. Usually you'd prefix them with the directive/compiler name...

...an error must be very close to the network card, OS IP stack or compiler. In reality this is quite rare, so before continuing, triple-check that the issue is...