Browse Source

Upgrading dependencies, adding dev mode and prod mode and package-lock

main
David Négrier 5 months ago
parent
commit
75a3cab8eb
  1. 5970
      package-lock.json
  2. 22
      package.json
  3. 1
      webpack.config.js
  4. 7
      webpack.prod.js

5970
package-lock.json

File diff suppressed because it is too large

22
package.json

@ -4,19 +4,19 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@workadventure/iframe-api-typings": "^1.2.0",
"eslint": "^6.8.0",
"html-webpack-plugin": "^4.3.0",
"ts-loader": "^6.2.2",
"ts-node": "^8.10.2",
"typescript": "^3.8.3",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"webpack-merge": "^4.2.2"
"@workadventure/iframe-api-typings": "^1.2.1",
"eslint": "^7.24.0",
"html-webpack-plugin": "^5.3.1",
"ts-loader": "^8.1.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4",
"webpack": "^5.31.2",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.7.3"
},
"scripts": {
"start": "webpack-dev-server --open",
"start": "webpack serve --open",
"build": "webpack --config webpack.prod.js",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts",

1
webpack.config.js

@ -3,6 +3,7 @@ const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'development',
entry: './src/index.ts',
devtool: 'inline-source-map',
devServer: {

7
webpack.prod.js

@ -0,0 +1,7 @@
const merge = require('webpack-merge');
const common = require('./webpack.config.js');
module.exports = merge(common, {
mode: 'production',
devtool: 'source-map'
});
Loading…
Cancel
Save