Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 0a5f206

Browse files
committed
some modifications on config
1 parent d68e0e7 commit 0a5f206

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"name": "pixi-live2d",
33
"version": "1.2.0",
44
"description": "Display live2D model as a sprite in pixi.js.",
5-
"main": "dist/index.js",
5+
"main": "dist/pixi-live2d.js",
66
"scripts": {
77
"prepublish": "npm run build",
88
"build": "webpack --progress --colors --devtool source-map",
9+
"build-min": "webpack --progress --colors --devtool source-map --optimize-minimize",
10+
"build-watch": "webpack --progress --colors --devtool source-map --watch",
911
"dev": "webpack-dev-server --config ./webpack.config.example.js --progress --colors --devtool source-map --hot --host 0.0.0.0 --compress",
1012
"test": "echo \"Error: no test specified\" && exit 1"
1113
},
@@ -16,6 +18,10 @@
1618
"anime"
1719
],
1820
"author": "Icemic Jia <bingfeng.web@gmail.com>",
21+
"homepage": "https://github.com/avgjs/pixi-live2d",
22+
"bugs": {
23+
"url": "https://github.com/avgjs/pixi-live2d/issues"
24+
},
1925
"repository": {
2026
"type": "git",
2127
"url": "https://github.com/avgjs/pixi-live2d.git"

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
entry: "./src/index.js",
77
output: {
88
path: path.resolve(__dirname, './dist'),
9-
filename: "index.js",
9+
filename: "pixi-live2d.js",
1010
libraryTarget: 'umd'
1111
},
1212
resolve: {
@@ -17,6 +17,9 @@ module.exports = {
1717
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"},
1818
]
1919
},
20+
externals: {
21+
"pixi.js": "PIXI"
22+
},
2023
plugins: [
2124
new webpack.BannerPlugin(fs.readFileSync('./LICENSE.txt', 'utf8')),
2225
],

0 commit comments

Comments
 (0)