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

Commit

Permalink
some modifications on config
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemic committed Jan 14, 2017
1 parent d68e0e7 commit 0a5f206
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "pixi-live2d",
"version": "1.2.0",
"description": "Display live2D model as a sprite in pixi.js.",
"main": "dist/index.js",
"main": "dist/pixi-live2d.js",
"scripts": {
"prepublish": "npm run build",
"build": "webpack --progress --colors --devtool source-map",
"build-min": "webpack --progress --colors --devtool source-map --optimize-minimize",
"build-watch": "webpack --progress --colors --devtool source-map --watch",
"dev": "webpack-dev-server --config ./webpack.config.example.js --progress --colors --devtool source-map --hot --host 0.0.0.0 --compress",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -16,6 +18,10 @@
"anime"
],
"author": "Icemic Jia <[email protected]>",
"homepage": "https://github.com/avgjs/pixi-live2d",
"bugs": {
"url": "https://github.com/avgjs/pixi-live2d/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/avgjs/pixi-live2d.git"
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, './dist'),
filename: "index.js",
filename: "pixi-live2d.js",
libraryTarget: 'umd'
},
resolve: {
Expand All @@ -17,6 +17,9 @@ module.exports = {
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"},
]
},
externals: {
"pixi.js": "PIXI"
},
plugins: [
new webpack.BannerPlugin(fs.readFileSync('./LICENSE.txt', 'utf8')),
],
Expand Down

0 comments on commit 0a5f206

Please sign in to comment.