@ant-design-vue/tools
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -82,2 +82,3 @@ { | ||
"config": { | ||
"accesslog": true, | ||
"port": 3000, | ||
@@ -84,0 +85,0 @@ "entry": { |
@@ -14,2 +14,3 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const resolveCwd = require('../resolveCwd'); | ||
const logger = require('koa-logger'); | ||
@@ -23,2 +24,3 @@ const getWebpackConfig = require('../getWebpackConfig'); | ||
const cwd = process.cwd(); | ||
const pkg = require(resolveCwd('package.json')); | ||
@@ -32,3 +34,6 @@ module.exports = function(app) { | ||
const root = cwd; | ||
app.use(logger()); | ||
if (pkg.config.accesslog) { | ||
app.use(logger()); | ||
console.log('AccessLog Enable'); | ||
} | ||
app.use(require('koa-favicon')(path.join(__dirname, '../../public/favicon.ico'))); | ||
@@ -35,0 +40,0 @@ // parse application/x-www-form-urlencoded |
{ | ||
"name": "@ant-design-vue/tools", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "offline tools for vue component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# vc-tools | ||
offline tools for react component | ||
offline tools for vue component | ||
@@ -37,18 +37,28 @@ [![NPM version][npm-image]][npm-url] | ||
```js | ||
({ | ||
config: { | ||
entry:{}, // webpack entry for build dist umd | ||
port: 8000, // dev server port | ||
output:{}, // webpack output for build dist umd | ||
css: { // webpack css loader options | ||
loaderOptions: { | ||
less: { | ||
options: { | ||
javascriptEnabled: true | ||
```json | ||
{ | ||
"config": { | ||
// show access log in console | ||
"accesslog": true, | ||
// dev server port | ||
"port": 9528, | ||
// webpack entry for build dist umd | ||
"entry": { | ||
"my-project": [ | ||
"./src/index.ts" | ||
] | ||
}, | ||
// webpack output for build dist umd | ||
"output": {}, | ||
// webpack css loader options | ||
"css": { | ||
"loaderOptions": { | ||
"less": { | ||
"options": { | ||
"javascriptEnabled": true | ||
} | ||
}, | ||
css: { | ||
options: { | ||
sourceMap: true | ||
"css": { | ||
"options": { | ||
"sourceMap": true | ||
} | ||
@@ -59,18 +69,3 @@ } | ||
} | ||
}) | ||
} | ||
``` | ||
## History | ||
### 8.0.0 | ||
- upgrade eslint to the latest version | ||
- introduce prettier | ||
### 7.0.0 | ||
- upgrade to webpack3 | ||
### 6.0.0 | ||
- move test to vc-test |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336182
4298
70
35