Skip to content

Commit d7c88c3

Browse files
author
Guillaume Chau
committed
fix: css not being generated
1 parent ae8f507 commit d7c88c3

File tree

4 files changed

+1890
-209
lines changed

4 files changed

+1890
-209
lines changed

build/rollup.config.base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default {
2121
eslint(),
2222
vue({
2323
css (style) {
24+
const file = require.resolve('vue-resize/dist/vue-resize.css')
25+
style += fs.readFileSync(file, { encoding: 'utf8' })
2426
fs.writeFileSync('dist/vue-virtual-scroller.css', new CleanCSS().minify(style).styles)
2527
},
2628
}),

build/rollup.config.browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import base from './rollup.config.base'
2-
import { uglify } from 'rollup-plugin-uglify'
2+
import uglify from 'rollup-plugin-uglify'
33
import { minify } from 'uglify-es'
44

55
const config = Object.assign({}, base, {

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232
"url": "https://github.com/Akryum/vue-virtual-scroller/issues"
3333
},
3434
"homepage": "https://github.com/Akryum/vue-virtual-scroller#readme",
35+
"dependencies": {
36+
"scrollparent": "^2.0.1",
37+
"vue-observe-visibility": "^0.4.3",
38+
"vue-resize": "^0.4.5"
39+
},
3540
"peerDependencies": {
36-
"vue": "^2.5.2"
41+
"vue": "^2.5.21"
3742
},
3843
"devDependencies": {
3944
"babel-core": "^6.26.0",
@@ -50,22 +55,19 @@
5055
"eslint-plugin-promise": "^3.4.0",
5156
"eslint-plugin-standard": "^3.0.1",
5257
"eslint-plugin-vue": "^5.0.0-beta.3",
53-
"rollup": "^0.59.0",
58+
"rollup": "^0.50.0",
5459
"rollup-plugin-babel": "^3.0.2",
55-
"rollup-plugin-commonjs": "^9.1.0",
60+
"rollup-plugin-commonjs": "^8.2.0",
61+
"rollup-plugin-css-only": "^0.2.0",
62+
"rollup-plugin-css-porter": "^0.1.2",
5663
"rollup-plugin-eslint": "^4.0.0",
5764
"rollup-plugin-node-resolve": "^3.0.0",
5865
"rollup-plugin-replace": "^2.0.0",
59-
"rollup-plugin-uglify": "^4.0.0",
60-
"rollup-plugin-vue": "^4.2.0",
66+
"rollup-plugin-uglify": "^2.0.1",
67+
"rollup-plugin-vue": "^2.5.2",
6168
"uglify-es": "^3.0.28",
6269
"vue": "^2.5.17",
63-
"vue-template-compiler": "^2.2.5"
64-
},
65-
"dependencies": {
66-
"scrollparent": "^2.0.1",
67-
"vue-observe-visibility": "^0.4.3",
68-
"vue-resize": "^0.4.4"
70+
"vue-template-compiler": "^2.5.21"
6971
},
7072
"browserslist": [
7173
"> 1%",

0 commit comments

Comments
 (0)