craigteegarden / ember-cli-fingerprint-breaks-js-files

Demonstrate asset fingerprint issue in ember-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember-cli-fingerprint-breaks-js-files

This is an example repo to show an issue with asset fingerprinting. Specifically named asset files (in this case, ie.css) will be incorrectly searched-and-replaced inside of source javascript files, causing invalid javascript.

To show the issue, build the project with environment=production:

ember serve --environment=production

and navigate to http://localhost:4200.

In Chrome, the error will be Uncaught SyntaxError: Unexpected token ILLEGAL.

This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • npm install
  • bower install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links

About

Demonstrate asset fingerprint issue in ember-cli


Languages

Language:JavaScript 58.7%Language:HTML 31.2%Language:CSS 9.2%Language:Handlebars 0.9%