Skip to content

Commit 65085cf

Browse files
committed
Modify configuration of webpack for build library
1 parent c5dbc91 commit 65085cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ module.exports = {
88
},
99
output: {
1010
path: './dist',
11-
publicPath: '/'
11+
publicPath: '/',
12+
library: 'VueInfiniteLoading',
13+
libraryTarget: 'umd'
1214
},
1315
resolve: {
1416
extensions: ['', '.js', '.vue']
@@ -62,7 +64,6 @@ module.exports = {
6264
// production configurations
6365
if (process.env.NODE_ENV === 'production') {
6466
module.exports.output.filename = '[name].js';
65-
module.exports.output.chunkFilename = "[id].js";
6667

6768
module.exports.plugins = [
6869
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)