视频会议上传文件
This commit is contained in:
+47
-47
@@ -1,47 +1,47 @@
|
||||
# vue-style-loader [](https://circleci.com/gh/vuejs/vue-loader/tree/master) [](https://www.npmjs.com/package/vue-style-loader)
|
||||
|
||||
This is a fork based on [style-loader](https://github.com/webpack/style-loader). Similar to `style-loader`, you can chain it after `css-loader` to dynamically inject CSS into the document as style tags. However, since this is included as a dependency and used by default in `vue-loader`, in most cases you don't need to configure this loader yourself.
|
||||
|
||||
## Options
|
||||
|
||||
- **manualInject** (3.1.0+):
|
||||
|
||||
Type: `boolean`. When importing the style from a non-vue-file, by default the style is injected as a side effect of the import. When `manualInject` is true, the imported style object exposes a `__inject__` method, which can then be called manually at appropriate timing. If called on the server, the method expects one argument which is the `ssrContext` to attach styles to.
|
||||
|
||||
``` js
|
||||
import styles from 'styles.scss'
|
||||
|
||||
export default {
|
||||
beforeCreate() { // or create a mixin for this purpose
|
||||
if(styles.__inject__) {
|
||||
styles.__inject__(this.$ssrContext)
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div class={styles.heading}>Hello World</div>
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Note this behavior is enabled automatically when `vue-style-loader` is used on styles imported within a `*.vue` file. The option is only exposed for advanced usage.
|
||||
|
||||
- **ssrId** (3.1.0+):
|
||||
|
||||
Type: `boolean`. Add `data-vue-ssr-id` attribute to injected `<style>` tags even when not in Node.js. This can be used with pre-rendering (instead of SSR) to avoid duplicate style injection on hydration.
|
||||
|
||||
## Differences from `style-loader`
|
||||
|
||||
### Server-Side Rendering Support
|
||||
|
||||
When bundling with `target: 'node'`, the styles in all rendered components are collected and exposed on the Vue render context object as `context.styles`, which you can simply inline into your markup's `<head>`. If you are building a Vue SSR app, you probably should use this loader for CSS imported from JavaScript files too.
|
||||
|
||||
### Misc
|
||||
|
||||
- Does not support url mode and reference counting mode. Also removed `singleton` and `insertAt` query options. It always automatically pick the style insertion mechanism that makes most sense. If you need these capabilities you should probably use the original `style-loader` instead.
|
||||
|
||||
- Fixed the issue that root-relative URLs are interpreted against chrome:// urls and make source map URLs work for injected `<style>` tags in Chrome.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
# vue-style-loader [](https://circleci.com/gh/vuejs/vue-loader/tree/master) [](https://www.npmjs.com/package/vue-style-loader)
|
||||
|
||||
This is a fork based on [style-loader](https://github.com/webpack/style-loader). Similar to `style-loader`, you can chain it after `css-loader` to dynamically inject CSS into the document as style tags. However, since this is included as a dependency and used by default in `vue-loader`, in most cases you don't need to configure this loader yourself.
|
||||
|
||||
## Options
|
||||
|
||||
- **manualInject** (3.1.0+):
|
||||
|
||||
Type: `boolean`. When importing the style from a non-vue-file, by default the style is injected as a side effect of the import. When `manualInject` is true, the imported style object exposes a `__inject__` method, which can then be called manually at appropriate timing. If called on the server, the method expects one argument which is the `ssrContext` to attach styles to.
|
||||
|
||||
``` js
|
||||
import styles from 'styles.scss'
|
||||
|
||||
export default {
|
||||
beforeCreate() { // or create a mixin for this purpose
|
||||
if(styles.__inject__) {
|
||||
styles.__inject__(this.$ssrContext)
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div class={styles.heading}>Hello World</div>
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Note this behavior is enabled automatically when `vue-style-loader` is used on styles imported within a `*.vue` file. The option is only exposed for advanced usage.
|
||||
|
||||
- **ssrId** (3.1.0+):
|
||||
|
||||
Type: `boolean`. Add `data-vue-ssr-id` attribute to injected `<style>` tags even when not in Node.js. This can be used with pre-rendering (instead of SSR) to avoid duplicate style injection on hydration.
|
||||
|
||||
## Differences from `style-loader`
|
||||
|
||||
### Server-Side Rendering Support
|
||||
|
||||
When bundling with `target: 'node'`, the styles in all rendered components are collected and exposed on the Vue render context object as `context.styles`, which you can simply inline into your markup's `<head>`. If you are building a Vue SSR app, you probably should use this loader for CSS imported from JavaScript files too.
|
||||
|
||||
### Misc
|
||||
|
||||
- Does not support url mode and reference counting mode. Also removed `singleton` and `insertAt` query options. It always automatically pick the style insertion mechanism that makes most sense. If you need these capabilities you should probably use the original `style-loader` instead.
|
||||
|
||||
- Fixed the issue that root-relative URLs are interpreted against chrome:// urls and make source map URLs work for injected `<style>` tags in Chrome.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
+5
-2
@@ -6,7 +6,10 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||
"$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
exec node "$basedir/../json5/lib/cli.js" "$@"
|
||||
node "$basedir/../json5/lib/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
|
||||
+43
-14
@@ -1,27 +1,56 @@
|
||||
{
|
||||
"name": "hash-sum",
|
||||
"description": "Blazing fast unique hash generator",
|
||||
"version": "1.0.2",
|
||||
"homepage": "https://github.com/bevacqua/hash-sum",
|
||||
"_args": [
|
||||
[
|
||||
"hash-sum@1.0.2",
|
||||
"D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "hash-sum@1.0.2",
|
||||
"_id": "hash-sum@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
||||
"_location": "/vue-style-loader/hash-sum",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "hash-sum@1.0.2",
|
||||
"name": "hash-sum",
|
||||
"escapedName": "hash-sum",
|
||||
"rawSpec": "1.0.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vue-style-loader"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
||||
"_spec": "1.0.2",
|
||||
"_where": "D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5",
|
||||
"authors": [
|
||||
"Nicolas Bevacqua <nicolasbevacqua@gmail.com>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/bevacqua/hash-sum.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bevacqua/hash-sum/issues"
|
||||
},
|
||||
"main": "hash-sum.js",
|
||||
"scripts": {
|
||||
"test": "jshint . && tape test.js"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Blazing fast unique hash generator",
|
||||
"devDependencies": {
|
||||
"jshint": "2.5.0",
|
||||
"jshint-stylish": "0.2.0",
|
||||
"tape": "3.0.3"
|
||||
}
|
||||
},
|
||||
"homepage": "https://github.com/bevacqua/hash-sum",
|
||||
"license": "MIT",
|
||||
"main": "hash-sum.js",
|
||||
"name": "hash-sum",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/bevacqua/hash-sum.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jshint . && tape test.js"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
||||
|
||||
+82
-39
@@ -1,49 +1,62 @@
|
||||
{
|
||||
"name": "json5",
|
||||
"version": "1.0.2",
|
||||
"description": "JSON for humans.",
|
||||
"main": "lib/index.js",
|
||||
"bin": "lib/cli.js",
|
||||
"_args": [
|
||||
[
|
||||
"json5@1.0.2",
|
||||
"D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "json5@1.0.2",
|
||||
"_id": "json5@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
|
||||
"_location": "/vue-style-loader/json5",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "json5@1.0.2",
|
||||
"name": "json5",
|
||||
"escapedName": "json5",
|
||||
"rawSpec": "1.0.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vue-style-loader/loader-utils"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
|
||||
"_spec": "1.0.2",
|
||||
"_where": "D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5",
|
||||
"author": {
|
||||
"name": "Aseem Kishore",
|
||||
"email": "aseem.kishore@gmail.com"
|
||||
},
|
||||
"bin": {
|
||||
"json5": "lib/cli.js"
|
||||
},
|
||||
"browser": "dist/index.js",
|
||||
"files": [
|
||||
"lib/",
|
||||
"dist/"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "babel-node build/build.js && babel src -d lib && rollup -c",
|
||||
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
||||
"lint": "eslint --fix build src",
|
||||
"prepublishOnly": "npm run lint && npm test && npm run production",
|
||||
"pretest": "cross-env NODE_ENV=test npm run build",
|
||||
"preversion": "npm run lint && npm test && npm run production",
|
||||
"production": "cross-env NODE_ENV=production npm run build",
|
||||
"test": "nyc --reporter=html --reporter=text mocha"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/json5/json5.git"
|
||||
},
|
||||
"keywords": [
|
||||
"json",
|
||||
"json5",
|
||||
"es5",
|
||||
"es2015",
|
||||
"ecmascript"
|
||||
],
|
||||
"author": "Aseem Kishore <aseem.kishore@gmail.com>",
|
||||
"contributors": [
|
||||
"Max Nanasy <max.nanasy@gmail.com>",
|
||||
"Andrew Eisenberg <andrew@eisenberg.as>",
|
||||
"Jordan Tucker <jordanbtucker@gmail.com>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/json5/json5/issues"
|
||||
},
|
||||
"homepage": "http://json5.org/",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Max Nanasy",
|
||||
"email": "max.nanasy@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Andrew Eisenberg",
|
||||
"email": "andrew@eisenberg.as"
|
||||
},
|
||||
{
|
||||
"name": "Jordan Tucker",
|
||||
"email": "jordanbtucker@gmail.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.0"
|
||||
},
|
||||
"description": "JSON for humans.",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-core": "^6.26.0",
|
||||
@@ -72,5 +85,35 @@
|
||||
"rollup-plugin-uglify": "^3.0.0",
|
||||
"sinon": "^4.4.2",
|
||||
"unicode-9.0.0": "^0.7.5"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"lib/",
|
||||
"dist/"
|
||||
],
|
||||
"homepage": "http://json5.org/",
|
||||
"keywords": [
|
||||
"json",
|
||||
"json5",
|
||||
"es5",
|
||||
"es2015",
|
||||
"ecmascript"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "json5",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/json5/json5.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "babel-node build/build.js && babel src -d lib && rollup -c",
|
||||
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
||||
"lint": "eslint --fix build src",
|
||||
"prepublishOnly": "npm run lint && npm test && npm run production",
|
||||
"pretest": "cross-env NODE_ENV=test npm run build",
|
||||
"preversion": "npm run lint && npm test && npm run production",
|
||||
"production": "cross-env NODE_ENV=production npm run build",
|
||||
"test": "nyc --reporter=html --reporter=text mocha"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
||||
|
||||
+56
-21
@@ -1,28 +1,45 @@
|
||||
{
|
||||
"name": "loader-utils",
|
||||
"version": "1.4.2",
|
||||
"author": "Tobias Koppers @sokra",
|
||||
"description": "utils for webpack loaders",
|
||||
"_args": [
|
||||
[
|
||||
"loader-utils@1.4.2",
|
||||
"D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "loader-utils@1.4.2",
|
||||
"_id": "loader-utils@1.4.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
|
||||
"_location": "/vue-style-loader/loader-utils",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "loader-utils@1.4.2",
|
||||
"name": "loader-utils",
|
||||
"escapedName": "loader-utils",
|
||||
"rawSpec": "1.4.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.4.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vue-style-loader"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
|
||||
"_spec": "1.4.2",
|
||||
"_where": "D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5",
|
||||
"author": {
|
||||
"name": "Tobias Koppers @sokra"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/webpack/loader-utils/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"big.js": "^5.2.2",
|
||||
"emojis-list": "^3.0.0",
|
||||
"json5": "^1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint lib test",
|
||||
"pretest": "yarn lint",
|
||||
"test": "jest",
|
||||
"test:ci": "jest --coverage",
|
||||
"release": "yarn test && standard-version"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/webpack/loader-utils.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"description": "utils for webpack loaders",
|
||||
"devDependencies": {
|
||||
"coveralls": "^3.0.2",
|
||||
"eslint": "^5.11.0",
|
||||
@@ -32,8 +49,26 @@
|
||||
"prettier": "^1.19.1",
|
||||
"standard-version": "^4.0.0"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
]
|
||||
],
|
||||
"homepage": "https://github.com/webpack/loader-utils#readme",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "loader-utils",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/webpack/loader-utils.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint lib test",
|
||||
"pretest": "yarn lint",
|
||||
"release": "yarn test && standard-version",
|
||||
"test": "jest",
|
||||
"test:ci": "jest --coverage"
|
||||
},
|
||||
"version": "1.4.2"
|
||||
}
|
||||
|
||||
+52
-12
@@ -1,26 +1,66 @@
|
||||
{
|
||||
"name": "vue-style-loader",
|
||||
"version": "4.1.3",
|
||||
"author": "Evan You",
|
||||
"description": "Vue.js style loader module for webpack",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:vuejs/vue-style-loader.git"
|
||||
"_args": [
|
||||
[
|
||||
"vue-style-loader@4.1.3",
|
||||
"D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "vue-style-loader@4.1.3",
|
||||
"_id": "vue-style-loader@4.1.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-sFuh0xfbtpRlKfm39ss/ikqs9AbKCoXZBpHeVZ8Tx650o0k0q/YCM7FRvigtxpACezfq6af+a7JeqVTWvncqDg==",
|
||||
"_location": "/vue-style-loader",
|
||||
"_phantomChildren": {
|
||||
"big.js": "5.2.2",
|
||||
"emojis-list": "3.0.0",
|
||||
"minimist": "1.2.8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"prepublishOnly": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s"
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "vue-style-loader@4.1.3",
|
||||
"name": "vue-style-loader",
|
||||
"escapedName": "vue-style-loader",
|
||||
"rawSpec": "4.1.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "4.1.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@vue/cli-service",
|
||||
"/@vue/cli-service/@vue/vue-loader-v15"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
|
||||
"_spec": "4.1.3",
|
||||
"_where": "D:\\韩超勃\\视频会议\\Arbitrate-FrontendH5",
|
||||
"author": {
|
||||
"name": "Evan You"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/vue-style-loader/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"hash-sum": "^1.0.2",
|
||||
"loader-utils": "^1.0.2"
|
||||
},
|
||||
"description": "Vue.js style loader module for webpack",
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-jest": "^22.1.0",
|
||||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
|
||||
"conventional-changelog-cli": "^2.0.1",
|
||||
"jest": "^22.1.4"
|
||||
}
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/vue-style-loader#readme",
|
||||
"license": "MIT",
|
||||
"name": "vue-style-loader",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/vuejs/vue-style-loader.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s",
|
||||
"test": "jest"
|
||||
},
|
||||
"version": "4.1.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user