Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit efc0f53

Browse files
committed
build: remove lib from github, rename output file
1 parent b7240fb commit efc0f53

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ jspm_packages
3636
# Optional REPL history
3737
.node_repl_history
3838

39-
# Developing folder
40-
dev
39+
# Online document
40+
ghpages
41+
42+
# Build folder
43+
lib

.npmignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,5 @@ jspm_packages
3636
# Optional REPL history
3737
.node_repl_history
3838

39-
# Developing folder
40-
dev
41-
4239
# Online document
4340
ghpages

dev.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
</head>
99
<body>
10-
<script src="dev/clL2D.min.js"></script>
10+
<script src="lib/L2Dwidget.min.js"></script>
1111
<script type="text/javascript">
1212
L2Dwidget.init();
1313
</script>

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module.exports = env => {return{
1616
],
1717

1818
output: {
19-
filename: 'clL2D.min.js',
19+
filename: 'L2Dwidget.min.js',
2020
// YOU MUST INSTALL babel-plugin-syntax-dynamic-import FIRST TO ENABLE CODE SPLITTING!
21-
chunkFilename: 'clL2D.[id].min.js',
21+
chunkFilename: 'L2Dwidget.[id].min.js',
2222
library: 'L2Dwidget',
2323
libraryExport: 'L2Dwidget',
2424
libraryTarget: 'var',
25-
path: path.resolve(__dirname, (isProd(env) ? 'lib' : 'dev')),
25+
path: path.resolve(__dirname, 'lib'),
2626
pathinfo: (isProd(env) ? false : true),
2727
},
2828

0 commit comments

Comments
 (0)