Starter template for building Altspace apps with webpack
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src es6-ify things Apr 1, 2016
style Initial commit Apr 1, 2016
.babelrc Initial commit Apr 1, 2016
.eslintrc More sane eslint Apr 1, 2016
.gitignore Initial commit Apr 1, 2016
ATTRIBUTION.txt Add node modules attribution Oct 7, 2017
README.md Update README Apr 15, 2016
index.html Fix building on windows Apr 15, 2016
package-lock.json Add node modules attribution Oct 7, 2017
package.json Fix building on windows Apr 15, 2016
webpack.config.js Initial commit Apr 1, 2016

README.md

altspace-webpack-starter

Starter template for building Altspace apps with es6 and Webpack. The code is bundled up using Webpack and a dev server is provided for previewing the app with live reload and Hot Module Replacement.

Local Development

If you don't already have it installed, install npm then run the following to spin it up:

npm install
npm start

This will start a development server on port 8080. Changes to any of the javascript or css files will automatically be reflected (most times without losing application state).

Distribution

To build for distribution on Mac or Linux run:

npm run build

If you are building on a windows run:

npm run build_win

This will create a production version of bundle.js ready for deployment with index.html

Notes

When developing you may see the warning:

WARNING in ./~/altspace/dist/altspace.js
Critical dependencies:
2777:113-120 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/altspace/dist/altspace.js 2777:113-120

This is expected due to the way Altspace is published to npm and will be fixed in the future.