...can use decaffeinate to convert your CoffeeScript source to modern JavaScript. Install decaffeinate globally: npm install -g decaffeinate Call decaffeinate on each .coffee file, relaxing some options to get the...
put the fonts directly into your Webpack's assets folder or write an npm package with an own sass file that can be imported from the Webpack manifest.
...the compiled filepath (something like media/application/fonts/my_font-f99f9d50a569dbcf72e3084ef1a43208.ttf) and you're good. Load fonts as an npm package The second option is handy when you're dealing with fonts that are not...
...require ./person +import './person' -class @user extends Person +class window.user extends window.Person Add required npm dependencies to your package.json: yarn add coffeescript coffee-loader Define a CoffeeScript loader (e.g. in...
.../en/docs/cli/install for documentation about this command. This error is caused by Yarn not retrying npm disconnects which will not be fixed in Yarn 1. Assuming you don't want to...
...Webpacker has many more moving parts, but allows us to use ES6 modules and npm packages (through Yarn). Webpacker is a wrapper around a JavaScript project called webpack. Yarn
...its official documentation. You should learn how to: Install and update packages Remove packages npm npm is another package manager. We use Yarn, because Webpacker uses Yarn, but npm works...
First install Node.js / npm. Then you can install Bower through npm: sudo npm install -g bower
...in the one-digit kB range. You can set it up like this: Add npm modules add @fortawesome/fontawesome-free add fontmin-webpack. For webpack 3, use version ^1.0.2. Load the fontmin...
The following will transpile all src/*.js files into a file build.js: npm install typescript npx tsc src/*.js --target ES5 --allowJs --outFile build.js The output will only...
...for Linux, and building it yourself is painful. However, you can install it through npm: sudo npm install -g phantomjs
...for Ruby on Rails with Webpacker / Webpack 2. Do not use the ace-builds NPM package, because you won't be able to load it properly. Instead, use brace:
...SVG files, but it requires some manual work. Creating the icon font Install the NPM package icon-font-generator. If you're not using nvm, run sudo npm install -g...