Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
update 支持 amd or cmd 引用
Browse files Browse the repository at this point in the history
  • Loading branch information
think2011 committed Oct 31, 2015
1 parent 438d763 commit 7d68d2f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lrz",
"version": "4.2.12",
"version": "4.3.12",
"homepage": "https://github.com/think2011/localResizeIMG",
"authors": [
"think2011 <452125301@qq.com>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lrz",
"version": "4.2.12",
"version": "4.3.12",
"description": "前端本地客户端压缩图片,兼容IOS,Android,PC、自动按需加载文件",
"scripts": {
"test": "node ./node_modules/karma/bin/karma start"
Expand Down
4 changes: 1 addition & 3 deletions src/那么多文件,应该引用哪个?.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
2. 【lrz.all.bundle.js】是包含了所有引用了,莫名其妙的问题下就引用这个吧。
例如:https://github.com/think2011/localResizeIMG/issues/6

3. 【*.map】文件是供调试用的,正式使用删不删除都没关系,因为仅在调试时才会载入。

4. 还有,实测不支持AMD || CMD引用,请自行包装。
3. 【*.map】文件是供调试用的,正式使用删不删除都没关系,因为仅在调试时才会载入。
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports = {

output: {
filename : "[name].bundle.js",
chunkFilename: "[name].chunk.js"
chunkFilename: "[name].chunk.js",
libraryTarget: 'umd'
},

resolve: {
Expand Down

0 comments on commit 7d68d2f

Please sign in to comment.