Skip to content

Commit 3fbabee

Browse files
author
xutao15
committed
entry js mpdify
1 parent 802b22d commit 3fbabee

File tree

163 files changed

+6409
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+6409
-375
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://weapp.iviewui.com">
3-
<img width="200" src="https://file.iviewui.com/weapp-logo.svg">
3+
<img width="200" src="http://mpvue.com/assets/logo.png">
44
</a>
55
</p>
66

build/build-dev.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ gulp.task('compile-css', done => {
1414
.pipe(
1515
through2.obj(function (file, encoding, next) {
1616
this.push(file.clone())
17-
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)) {
17+
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)
18+
|| file.path.match(/(\/|\\)style\.less$/)
19+
) {
1820
transformLess(file.path)
1921
.then(css => {
2022
file.contents = Buffer.from(css)
@@ -42,8 +44,7 @@ gulp.task('compile-js', () => {
4244
through2.obj(function (file, encoding, next) {
4345
this.push(file.clone())
4446
if (
45-
file.path.match(/(\/|\\)style(\/|\\)index\.js/) ||
46-
file.path.match(/(\/|\\)src(\/|\\)index\.js/)
47+
file.path.match(/(\/|\\)style(\/|\\)index\.js/)
4748
) {
4849
const content = file.contents.toString(encoding)
4950
file.contents = Buffer.from(cssInjection(content))

build/build-prod.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ function compile() {
1515
.pipe(
1616
through2.obj(function(file, encoding, next) {
1717
this.push(file.clone());
18-
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)) {
18+
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)
19+
|| file.path.match(/(\/|\\)style\.less$/)
20+
) {
1921
transformLess(file.path)
2022
.then(css => {
2123
file.contents = Buffer.from(css);
@@ -44,8 +46,7 @@ function compile() {
4446
through2.obj(function(file, encoding, next) {
4547
this.push(file.clone());
4648
if (
47-
file.path.match(/(\/|\\)style(\/|\\)index\.js/) ||
48-
file.path.match(/(\/|\\)src(\/|\\)index\.js/)
49+
file.path.match(/(\/|\\)style(\/|\\)index\.js/)
4950
) {
5051
const content = file.contents.toString(encoding);
5152
file.contents = Buffer.from(cssInjection(content));

dist/components/action-sheet/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import actionSheet from 'action-sheet.vue'
1+
import actionSheet from './action-sheet.vue'
22

33
export default actionSheet

dist/components/alert/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import alert from 'alert.vue'
1+
import alert from './alert.vue'
22

33
export default alert

dist/components/avatar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import avatar from 'avatar.vue'
1+
import avatar from './avatar.vue'
22

33
export default avatar

dist/components/badge/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import badge from 'badge.vue'
1+
import badge from './badge.vue'
22

33
export default badge

dist/components/card/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import card from 'card.vue'
1+
import card from './card.vue'
22

33
export default card

dist/components/cell-group/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import cellGroup from 'cell-group.vue'
1+
import cellGroup from './cell-group.vue'
22

33
export default cellGroup

dist/components/cell/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import cell from 'cell.vue'
1+
import cell from './cell.vue'
22

33
export default cell

0 commit comments

Comments
 (0)