Skip to content
This repository was archived by the owner on Feb 22, 2021. It is now read-only.

Commit 0c267e4

Browse files
authored
Merge pull request #3 from WittBulter/chore-build
docs(readme): improve slogan
2 parents 1f5bb9d + d182423 commit 0c267e4

File tree

4 files changed

+33
-10
lines changed

4 files changed

+33
-10
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
<div align="center" height="500">
2+
<img src="logo.png" width="350" height="220" align="center">
3+
</div>
4+
5+
<br><br>
16
### back-loader
7+
> a easy and steady preload lib, you can use it to load all kinds of resources. use **back-loader** in your project,
8+
> can quickly preload more pictures, styles(.css) or scripts, it will make your website more fluent.
29
310

411
#### Usage

build/main/webpack.prod.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@ module.exports = {
4444

4545
plugins: [
4646
new webpack.NoEmitOnErrorsPlugin(),
47+
48+
new webpack.optimize.UglifyJsPlugin({
49+
mangle: { keep_fnames: true },
50+
sourceMap: false,
51+
}),
4752
],
4853
}

logo.png

4.46 KB
Loading

package.json

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,40 @@
22
"name": "back-loader",
33
"version": "0.1.0",
44
"description": "",
5-
"main": "commitlint.config.js",
5+
"main": "release/index.d.ts",
6+
"unpkg": "release/back-loader.js",
7+
"author": "WittBulter(nanazuimeng123@gmail.com)",
8+
"homepage": "https://github.com/DhyanaChina/back-loader#readme",
9+
"license": "MIT",
610
"scripts": {
711
"test": "./node_modules/.bin/mocha",
8-
"cover:local": "./node_modules/.bin/nyc mocha",
12+
"cover:local": "./node_modules/.bin/nyc mocha && open coverage/lcov-report/index.html",
913
"cover:hook": "./node_modules/.bin/nyc mocha && cat ./coverage/lcov.info | coveralls",
10-
"ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run tsc:clean",
11-
"ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run tsc:clean",
12-
"release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/main/webpack.prod.js && npm run tsc:clean",
13-
"tsc:clean": "find build -name '*.js' | xargs rm -f ",
14-
"clearup": "rm -rf dist & rm -rf release",
14+
"ex": "tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run clean:tsc",
15+
"ex:build": "tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run clean:tsc",
16+
"release": "tsc ./build/main/webpack.prod.ts && rm -rf release && webpack --config build/main/webpack.prod.js && npm run clean:tsc",
17+
"clean:tsc": "find build -name '*.js' | xargs rm -f",
18+
"clean:cover": "rm -rf coverage .nyc_output",
19+
"clean:build": "rm -rf dist release",
20+
"clean:all": "npm run clean:tsc & npm run clean:cover & npm run clean:build",
1521
"commit": "node_modules/commitizen/bin/commitizen init cz-conventional-changelog --save --save-exact",
1622
"commitmsg": "commitlint -e $GIT_PARAMS"
1723
},
1824
"repository": {
1925
"type": "git",
2026
"url": "git+https://github.com/DhyanaChina/back-loader.git"
2127
},
22-
"author": "WittBulter(nanazuimeng123@gmail.com)",
23-
"license": "MIT",
2428
"bugs": {
2529
"url": "https://github.com/DhyanaChina/back-loader/issues"
2630
},
27-
"homepage": "https://github.com/DhyanaChina/back-loader#readme",
31+
"files": [
32+
"release"
33+
],
34+
"keywords": [
35+
"preload",
36+
"back-load",
37+
"script-loader"
38+
],
2839
"devDependencies": {
2940
"@commitlint/config-angular": "^6.0.2",
3041
"@types/chai": "^4.1.0",

0 commit comments

Comments
 (0)