Skip to content
Snippets Groups Projects
Verified Commit 6cd6514d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add serve command

parent 0ef52e71
No related branches found
No related tags found
No related merge requests found
Pipeline #7307 passed
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
"phaser": "^3.54.0" "phaser": "^3.54.0"
}, },
"scripts": { "scripts": {
"build": "webpack", "clean": "rm -rf dist/",
"lint": "eslint ./src" "build": "webpack build",
"lint": "eslint ./src",
"serve": "webpack serve"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^7.25.0", "eslint": "^7.25.0",
...@@ -23,6 +25,7 @@ ...@@ -23,6 +25,7 @@
"html-webpack-plugin": "^5.3.1", "html-webpack-plugin": "^5.3.1",
"symlink-webpack-plugin": "^1.1.0", "symlink-webpack-plugin": "^1.1.0",
"webpack": "^5.35.0", "webpack": "^5.35.0",
"webpack-cli": "^4.6.0" "webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2"
} }
} }
...@@ -37,5 +37,8 @@ module.exports = { ...@@ -37,5 +37,8 @@ module.exports = {
output: { output: {
filename: 'augmentile-[name].bundle.js', filename: 'augmentile-[name].bundle.js',
path: path.resolve(__dirname, 'dist') path: path.resolve(__dirname, 'dist')
},
devServer: {
contentBase: path.join(__dirname, 'dist')
} }
}; };
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment