Skip to content

Commit 7322c3f

Browse files
committed
slim down webpack.config, since webpack 4 provides so many defaults
1 parent 28c7c1e commit 7322c3f

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
"name": "@code-dot-org/maze",
33
"version": "1.1.0",
44
"description": "standalone project for the Maze app type",
5-
"files": [
6-
"lib/maze.js"
7-
],
8-
"main": "lib/maze.js",
5+
"main": "dist/main.js",
96
"scripts": {
107
"build": "webpack -p",
11-
"build:dev": "webpack --progress --colors",
8+
"build:dev": "webpack --progress --colors --mode=development",
129
"build:demo": "webpack --config demo/webpack.config.js",
1310
"lint": "eslint --ext .js src/ test",
1411
"postversion": "git push && git push --tags && npm publish",

webpack.config.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
const path = require("path");
2-
const name = "maze";
3-
41
module.exports = {
5-
entry: './src/index.js',
62
output: {
7-
path: path.resolve(__dirname, "lib"),
8-
filename: name + ".js",
9-
library: name,
103
libraryTarget: 'umd',
11-
umdNamedDefine: true
124
},
13-
target: 'node',
145
module: {
156
rules: [{
167
test: /\.js$/,
178
loader: "babel-loader",
189
}]
1910
},
20-
resolve: {
21-
extensions: [".js"],
22-
},
23-
stats: {
24-
colors: true
25-
},
26-
devtool: 'source-map',
27-
devServer: { inline: true }
2811
};

0 commit comments

Comments
 (0)