File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- const path = require ( "path" ) ;
2- const name = "maze" ;
3-
41module . 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 : / \. j s $ / ,
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} ;
You can’t perform that action at this time.
0 commit comments