869 B
869 B
UNO game written in JavaScript
I used:
- js
- webpack and loaders: to pack to one file
- Wallpaper Access: Background image
For developers
Install webpack
This repo is compiled with webpack. So, first install webpack by
npm install webpack webpack-cli style-loader css-loader file-loader sass sass-loader --save-dev
webpack,webpack-cli: webpackstyle-loader: Createsstylenodes from JS stringscss-loader: Translates CSS into CommonJSfile-loader: copy image files to distsass,sass-loader: Compiles Sass to CSS--save-dev: write dependencies indevDependenciesinstead ofdependenciesinpackage.json
Config webpack
Edit webpack.config.js to use webpack loaders
Use webpack
npx webpack
or
npm run build
This command will generate dist/main.js