/react-aframe-game

🅰️ Simple AR game base on React && Aframe.js

Primary LanguageJavaScriptMIT LicenseMIT

aframe-react-game

Building virtual reality experiences with A-Frame and React with aframe-react.

Installation

To get started:

npm install
npm start

Notice

build fails to minify

In order to support minify ES6 code, replace webpack.optimize.UglifyJsPlugin in node_modules/react-scripts/config/webpack.config.prod.js Line:294

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

// ...

new UglifyJsPlugin({
  uglifyOptions: {
    compress: {
      warnings: false,
      comparisons: false,
    },
    mangle: {
      safari10: true,
    },
    output: {
      comments: false,
      ascii_only: true,
    }
  },
  sourceMap: shouldUseSourceMap,
})