Skip to content
Snippets Groups Projects
  • Robert Long's avatar
    a97422a7
    Webpack Refactor (#39) · a97422a7
    Robert Long authored
    * Make handlebars template plugin more flexible. Add crc hash to urls. Add origin trials. Add smoketest.
    
    * Add origin trial token documentation
    
    * Update readme to use crc hash.
    
    * Correct smoketest urls.
    
    * Move templatre generation into common and add env var to generate smoke tests.
    
    * Move vendor assets into separate bundle. Clean public directory on build. Extract and optimize css. Move back to Uglify.
    
    * Fix extract text plugin in dev.
    
    * Update CONFIG comment
    
    * Added webpack file loader and lobby background.
    
    * Copy assets directory into public folder on build. Fix file-loader config to point at copied folder.
    
    * Fix for webpack-dev-server when copying assets.
    
    * Fix setting environment variables on windows.
    Webpack Refactor (#39)
    Robert Long authored
    * Make handlebars template plugin more flexible. Add crc hash to urls. Add origin trials. Add smoketest.
    
    * Add origin trial token documentation
    
    * Update readme to use crc hash.
    
    * Correct smoketest urls.
    
    * Move templatre generation into common and add env var to generate smoke tests.
    
    * Move vendor assets into separate bundle. Clean public directory on build. Extract and optimize css. Move back to Uglify.
    
    * Fix extract text plugin in dev.
    
    * Update CONFIG comment
    
    * Added webpack file loader and lobby background.
    
    * Copy assets directory into public folder on build. Fix file-loader config to point at copied folder.
    
    * Fix for webpack-dev-server when copying assets.
    
    * Fix setting environment variables on windows.

Mozilla Social Mixed Reality Client

A prototype client demonstrating a multi-user experience in WebVR. Built with A-Frame

Getting Started

To run the social client, run:

git clone https://github.com/mozilla/mr-social-client.git
yarn install
yarn start

Building Static Files

To bundle javascript and generate the html templates, run:

yarn build

Using CDN Assets

If you are hosting your static assets at separate path from the html documents, the asset handlebars helper supports rewriting the base asset paths. To use it run:

BASE_ASSETS_PATH="https://cdn.mysite.com/assets/" yarn build

Ex.

<img src="{{asset "asseturl.png"}}"/>

Will become:

<img src="https://cdn.mysite.com/assets/asseturl.png?crc=f37a775"/>