Skip to content

Commit

Permalink
Replace gulp with webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
erksch committed Jan 10, 2020
1 parent ce51ccd commit 2081822
Show file tree
Hide file tree
Showing 5 changed files with 996 additions and 1,450 deletions.
29 changes: 0 additions & 29 deletions gulpfile.js

This file was deleted.

18 changes: 6 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,20 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"watch": "gulp"
"build": "webpack",
"watch": "webpack --watch",
"serve": "./serve_frontend.sh"
},
"dependencies": {
"axios": "^0.19.0",
"lodash": "^4.17.15",
"rxjs": "^6.5.3",
"socket.io-client": "^2.3.0",
"three": "^0.111.0",
"three-orbit-controls": "^82.1.0",
"three-orbitcontrols": "^2.110.1"
},
"devDependencies": {
"@types/node": "^12.12.14",
"@types/socket.io-client": "^1.4.32",
"browserify": "^16.5.0",
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"tsify": "^4.0.1",
"ts-loader": "^6.2.1",
"typescript": "^3.7.2",
"vinyl-source-stream": "^2.0.0",
"watchify": "^3.11.1"
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
}
}
File renamed without changes.
22 changes: 22 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require('path');

module.exports = {
entry: './src/index.ts',
mode: 'development',
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [ '.ts', '.js' ],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};
Loading

0 comments on commit 2081822

Please sign in to comment.