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

Commit

Permalink
build: remove lib from github, rename output file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazeyu committed Feb 7, 2018
1 parent b7240fb commit efc0f53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Expand Up @@ -36,5 +36,8 @@ jspm_packages
# Optional REPL history
.node_repl_history

# Developing folder
dev
# Online document
ghpages

# Build folder
lib
3 changes: 0 additions & 3 deletions .npmignore
Expand Up @@ -36,8 +36,5 @@ jspm_packages
# Optional REPL history
.node_repl_history

# Developing folder
dev

# Online document
ghpages
2 changes: 1 addition & 1 deletion dev.html
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script src="dev/clL2D.min.js"></script>
<script src="lib/L2Dwidget.min.js"></script>
<script type="text/javascript">
L2Dwidget.init();
</script>
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Expand Up @@ -16,13 +16,13 @@ module.exports = env => {return{
],

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

Expand Down

0 comments on commit efc0f53

Please sign in to comment.