Commit fcc5e7a2 authored by wangxuelai's avatar wangxuelai

'webpack4.0升级'

parent a370d8fb
{
"plugins": ["dva-hmr"]
"presets": ["react", "es2015", "@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties"
]
}
\ No newline at end of file
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
......@@ -12,3 +12,4 @@ src/utils/request.js
src/utils/calendar.js
src/common/blacklist
js/
webpackconfig/
......@@ -61,6 +61,9 @@
"react/no-did-mount-set-state": 0,
"react/no-did-update-set-state": 0,
"prefer-rest-params": 0,
"jsx-a11y/mouse-events-have-key-events": 0
"jsx-a11y/mouse-events-have-key-events": 0,
"prefer-object-spread": 0,
"react/jsx-props-no-spreading": 0,
"lines-between-class-members": 0
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>biz.shangjiadao.com</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
</natures>
<filteredResources>
<filter>
<id>1523338435027</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
import userList from './mock/common.js';
// export default userList;
export default {
'GET /api/users': userList,
};
\ No newline at end of file
const path = require('path');
let imagePath = '';
if (process.env.NODE_ENV == 'development') {
imagePath = "'/image/'";
} else if (process.env.NODE_ENV == 'testenv') {
imagePath = "'/image/'";
} else if (process.env.NODE_ENV == 'production') {
imagePath = "'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/'";
}
export default {
"env": {
"development": {
define: {
'_CDN_': '',
'ENVIRONMENT': 'dev',
// '__IMGCDN__': 'http://wxloss.oss-cn-hangzhou.aliyuncs.com/qingxiaobiz/'
'__IMGCDN__': '/image/'
}
},
"testenv": {
define: {
'_CDN_': '',
'ENVIRONMENT': 'testenv',
// '__IMGCDN__': 'http://wxloss.oss-cn-hangzhou.aliyuncs.com/qingxiaobiz/'
'__IMGCDN__': '/image/'
}
},
"production": {
define: {
'ENVIRONMENT': 'pro',
'_CDN_': '',
'__IMGCDN__': 'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/'
}
}
},
"extraBabelPlugins": [
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }]
],
"theme": {
"primary-color": "#1890FF",
"imagepath": imagePath,
},
es5ImcompatibleVersions: true,
"proxy": {
// "/api": {
// "target": "http://zt.m.shangjiadao.cn.local:80", // 本地
// // "target": "http://ybbiz2.shangjiadao.com.local:80",
// "changeOrigin": true,
// "secure": false,
// },
// "/v2": {
// "target": 'http://test.wp53.cn', // 测试环境
// // "target": "http://biz.shangjiadao.com", // 正式环境
// "changeOrigin": true,
// "secure": false,
// },
// "/daka": {
// "target": 'http:clock.wp53.cn', // 测试环境
// // "target": "http://biz.shangjiadao.com", // 正式环境
// "changeOrigin": true,
// "secure": false,
// },
}
}
# biz.qingxiao.com
轻校管理PC后台的项目
\ No newline at end of file
......@@ -3,20 +3,26 @@
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<%= htmlWebpackPlugin.options.files.header.css.map((item) => {
return `<link href="${_CDN_}${item}" rel="stylesheet">`
}) %>
return `<link href="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" rel="stylesheet">`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.js.map((item) => {
return `<script src="${_CDN_}${item}" charset="utf-8"></script>`
}) %>
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012" charset="utf-8"></script>`
}).join('') %>
</head>
</head>
<body>
<div id="root"></div>
<%= htmlWebpackPlugin.options.files.footer.js.map((item) => {
return `<script src="${_CDN_}${item}" charset="utf-8"></script>`
}) %>
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" charset="utf-8"></script>`
}).join('') %>
</body>
</html>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>轻校</title>
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png">
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;" name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- Polyfills -->
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<link href="/dist/index.css?1571883855260" rel="stylesheet">
<script src="/lib/vendor.dll.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?20191012" charset="utf-8"></script>
<script src="js/console-polyfill.js?20191012" charset="utf-8"></script><script src="js/es6-shim.min.js?20191012" charset="utf-8"></script><script src="js/es5-shim.js?20191012" charset="utf-8"></script><script src="js/es5-sham.min.js?20191012" charset="utf-8"></script><script src="js/json3.min.js?20191012" charset="utf-8"></script><script src="js/html5shiv.min.js?20191012" charset="utf-8"></script><script src="js/polyfill.js?20191012" charset="utf-8"></script><script src="lib/vendor.dll.js?20191012" charset="utf-8"></script>
</head>
</head>
<body>
<div id="root"></div>
<script src="/dist/index.js?1571883855260" charset="utf-8"></script>
<script src="dist/main.js?1571885113090" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
{
"private": true,
"name": "dvatest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "set NODE_ENV=development&&set PORT=80 && roadhog server",
"build": "set NODE_ENV=production&&roadhog build",
"test-build": "set NODE_ENV=testenv&&roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint",
"lib": "webpack --config webpackconfig/webpack.dll.config.js"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "set OWNNER_ENV=dev&& webpack-dev-server",
"lint": "eslint --ext .js src",
"lib": "webpack --config webpackconfig/webpack.dll.config.js",
"test-build": "set OWNNER_ENV=test&& webpack --config webpackconfig/webpack.test.config.js",
"build": "set OWNNER_ENV=pro&& webpack --config webpackconfig/webpack.pro.config.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"@antv/data-set": "^0.10.2",
"antd": "^3.20.3",
......@@ -23,8 +28,9 @@
"co": "^4.6.0",
"console-polyfill": "^0.3.0",
"cropper": "^3.1.4",
"dva": "^2.1.0",
"dva": "2.1.0",
"dva-loading": "^1.0.4",
"dva-router-config": "^1.1.0",
"echarts": "^4.0.4",
"es3ify-loader": "^0.2.0",
"es5-shim": "^4.5.10",
......@@ -32,32 +38,49 @@
"fetch-ie8": "^1.5.0",
"fetch-jsonp": "^1.1.3",
"jquery": "^3.3.1",
"js-base64": "^2.5.1",
"lodash": "^4.17.5",
"mini-css-extract-plugin": "^0.8.0",
"mockjs": "^1.0.1-beta3",
"path-to-regexp": "^2.1.0",
"qrcode.react": "^0.8.0",
"qs": "^6.5.1",
"react": "^16.2.0",
"query-string": "^6.8.3",
"react": "16.9.0",
"react-dom": "^16.2.0",
"react-slick": "^0.25.2",
"video-react": "^0.14.1",
"xlsx": "^0.15.0"
},
"devDependencies": {
"babel-eslint": "^8.2.2",
"babel-plugin-dva-hmr": "^0.3.2",
"es3ify-loader": "^0.2.0",
"eslint": "^4.14.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-umi": "^0.1.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.1.0",
"html-webpack-plugin": "^3.1.0",
"husky": "^0.12.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.5.0-beta.4",
"webpack": "^3.8.1"
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "7.0.0-beta.3",
"babel-preset-react": "7.0.0-beta.3",
"css-loader": "^3.2.0",
"eslint": "^6.5.1",
"eslint-config-airbnb": "16.1.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^3.0.2",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^3.2.0",
"jsx-loader": "^0.13.2",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"postcss-loader": "^3.0.0",
"style-loader": "^1.0.0",
"url-loader": "^2.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.8.2",
"webpack-merge": "^4.2.2"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<%= htmlWebpackPlugin.options.files.header.css.map((item) => {
return `<link href="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" rel="stylesheet">`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012" charset="utf-8"></script>`
}).join('') %>
</head>
</head>
<body>
<div id="root"></div>
<%= htmlWebpackPlugin.options.files.footer.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" charset="utf-8"></script>`
}).join('') %>
</body>
</html>
\ No newline at end of file
import dva from 'dva';
import createLoading from 'dva-loading';
import 'antd/dist/antd.less';
import './index.less';
import models from './models/index';
// 1. Initialize
......
......@@ -3,7 +3,7 @@ import React from 'react';
import { Icon, Divider, Tabs, Select, Form, Upload, Row, Col, Input, Radio, Modal, message } from 'antd';
import pageStyle from './ThemeEditor.less';
import { pageIn, hasBtnPower, imagify, ossVideofy } from '../../utils/index';
import upImg from '../../../image/subjectUp.png';
const upImg = `${__IMGCDN__}subjectUp.png`;
const { TabPane } = Tabs;
const { TextArea } = Input;
class ThemeEditor extends React.Component {
......
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const proFile = {
title: '轻校',
template: './public/index.ejs',
filename: '../index.html',
inject: false,
// hash: true,
minify:{
// removeAttributeQuotes: true, // 移除属性的引号
collapseWhitespace: true,
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const baseconfig = require('./webpackconfig/webpack.base.config.js');
module.exports = webpackMerge(baseconfig, {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, "/dist"), // string
publicPath:'/',
},
mode: 'development',
devServer: {
contentBase: path.join(__dirname, '/'),
compress: true,
port: 80,
overlay: true
},
files: {
CDN: 'https://cdn.img.shangjiadao.cn/qingxiao/biz/',
header: {
js: [
"lib/vendor.dll.js",
"js/console-polyfill.js",
"js/es6-shim.min.js",
"js/es5-shim.js",
"js/es5-sham.min.js",
"js/json3.min.js",
"js/html5shiv.min.js",
"js/polyfill.js",
],
css: [ "dist/index.css"]
},
footer: {
js: ["dist/index.js"]
}
}
};
const testFile ={
title: '轻校',
template: './public/index.ejs',
filename: '../index.html',
inject: false,
// hash: true,
files: {
CDN: '',
header: {
js: ["lib/vendor.dll.js"],
css: [ "dist/index.css" ]
},
footer: {
js: ["dist/index.js"]
}
}
};
const devFile ={
title: '轻校',
template: './public/index.ejs',
inject: false,
// hash: true,
files: {
CDN: '',
header: {
js: ["lib/vendor.dll.js"],
css: [ "index.css" ]
},
footer: {
js: ["index.js"]
}
}
};
module.exports = function (config, env) {
const newConfig = config;
// const production = process.env.NODE_ENV == 'production';
const NODE_ENV = process.env.NODE_ENV;
let htmlOption;
if (NODE_ENV == 'development') { // 线下环境
newConfig.output.chunkFilename = "[name].js?[chunkhash:4]";
htmlOption = devFile;
} else if (NODE_ENV == 'testenv') {
newConfig.output.filename = "[name].js";
newConfig.output.path = path.resolve(__dirname, './dist');
newConfig.output.publicPath = "/dist/";
newConfig.output.chunkFilename = "[name].js?[chunkhash:6]";
htmlOption = testFile;
} else { // 线上环境
htmlOption = proFile;
newConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
drop_console: true,
}
}),);
newConfig.output.filename = "[name].js";
newConfig.output.path = path.resolve(__dirname, './dist');
newConfig.output.publicPath = "https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/";
newConfig.output.chunkFilename = "[name].js?[chunkhash:6]";
}
newConfig.plugins.push(new HtmlWebpackPlugin(htmlOption));
newConfig.plugins.push(new webpack.DllReferencePlugin({
context: __dirname,
manifest: require('./lib/vendor-manifest.json'),
}));
newConfig.externals = {
qq: 'qq'
}
return newConfig;
}
});
\ No newline at end of file
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const OWNNER_ENV = process.env.OWNNER_ENV;
let CDN = '';
let htmlFilename = '';
let imagepath = '';
let ENVIRONMENT = '';
let __IMGCDN__ = '';
let mainJS = '';
if (OWNNER_ENV == 'dev') {
imagepath = '/image/';
ENVIRONMENT = "dev";
__IMGCDN__ = "/image/";
mainJS = 'main.js';
htmlFilename = './index.html';
} else if (OWNNER_ENV == 'test') {
imagepath = "/image/";
ENVIRONMENT = "testenv";
__IMGCDN__ = "/image/";
mainJS = 'dist/main.js';
htmlFilename = '../index.html';
} else if (OWNNER_ENV == 'pro') {
imagepath = "https://cdn.img.shangjiadao.cn/qingxiao/biz/image/";
ENVIRONMENT = "pro";
__IMGCDN__ = "https://cdn.img.shangjiadao.cn/qingxiao/biz/image/";
CDN = 'https://cdn.img.shangjiadao.cn/qingxiao/biz/';
htmlFilename = '../index.html';
mainJS = 'dist/main.js';
}
const devFile ={
title: '轻校',
template: './index.ejs',
filename: htmlFilename,
inject: false,
// hash: true,
files: {
CDN: CDN,
header: {
js: [
"js/console-polyfill.js",
"js/es6-shim.min.js",
"js/es5-shim.js",
"js/es5-sham.min.js",
"js/json3.min.js",
"js/html5shiv.min.js",
"js/polyfill.js",
"lib/vendor.dll.js",
],
css: []
},
footer: {
js: [mainJS]
}
}
};
module.exports = {
output: {
filename: "[name].js",
chunkFilename: '[name].js?[chunkhash:6]',
},
module: {
rules: [
{
test: /\.less$/,
exclude: /(node_modules|bower_components)/,
use: [
{
loader: 'style-loader', // creates style nodes from JS strings
},
{
loader: 'css-loader', // translates CSS into CommonJS
options: {
modules: true,
},
},
{
loader: 'less-loader', // compiles Less to CSS
options: {
modules: true,
globalVars: {
"imagepath": JSON.stringify(imagepath),
},
}
},
],
},
{
test: /\.css$/,
exclude: /(node_modules|bower_components)/,
use: [
{
loader: 'style-loader', // creates style nodes from JS strings
},
{
loader: 'css-loader', // translates CSS into CommonJS
options: {
},
},
],
},
{
test: /antd.*\.less$/,
use: ["style-loader",
{
loader: 'css-loader',
},
{
loader: 'less-loader',
options: { javascriptEnabled: true }
},
],
include: /node_modules/
},
{
test: /antd.*\.css$/,
use: ["style-loader",
{
loader: 'css-loader',
},
],
include: /node_modules/
},
{
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_components)/,
use: [{
loader: 'babel-loader',
options: {
cacheDirectory: true,
},
}, {
loader: 'eslint-loader',
options: {
enforce: "pre", // 编译前检查
exclude: /node_modules/, // 不检测的文件
include: [path.resolve(__dirname, 'src')], // 指定检查的目录
}
}]
},
{
test: /\.(woff|woff2|eot|ttf|svg)$/,
loader: 'url-loader?limit=100000'
},
],
},
plugins: [
new HtmlWebpackPlugin(devFile),
new webpack.DefinePlugin({
// 'ENVIRONMENT': `"${ENVIRONMENT}"`,
// '__IMGCDN__' : `"${__IMGCDN__}"`,
'ENVIRONMENT': JSON.stringify(ENVIRONMENT),
'__IMGCDN__' : JSON.stringify(__IMGCDN__),
}),
],
optimization: {
splitChunks: {
chunks: "all",
minSize: 10000000,
minChunks: 1,
}
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ const path = require('path');
const webpack = require('webpack');
module.exports = {
mode: 'production',
entry: {
vendor: [
'react',
......@@ -25,13 +26,10 @@ module.exports = {
*/
library: '[name]_library',
},
optimization: {
minimize: true
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
drop_console: false,
}
}),
new webpack.DefinePlugin({
"process.env": {
"NODE_ENV": JSON.stringify("production")
......
const webpackMerge = require('webpack-merge');
const baseconfig = require('./webpack.base.config.js');
const webpack = require('webpack');
const path = require('path');
module.exports = webpackMerge(baseconfig, {
entry: path.resolve(__dirname, "../src/index.js"),
output: {
path: path.resolve(__dirname, "../dist"), // string
publicPath:'https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/',
},
mode: 'production',
plugins: [
new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require('../lib/vendor-manifest.json'),
}),
],
});
\ No newline at end of file
const webpackMerge = require('webpack-merge');
const baseconfig = require('./webpack.base.config.js');
const webpack = require('webpack');
const path = require('path');
module.exports = webpackMerge(baseconfig, {
entry: path.resolve(__dirname, "../src/index.js"),
output: {
path: path.resolve(__dirname, "../dist"), // string
publicPath:'./dist/',
},
mode: 'production',
plugins: [
new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require('../lib/vendor-manifest.json'),
}),
],
});
\ No newline at end of file
Arguments:
D:\application\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js
PATH:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Ruby24\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Common Files\NSEC\;C:\Python27;D:\application\Microsoft VS Code\bin;D:\application\nodejs\;D:\application\Microsoft VS Code\bin;E:\application\Fiddler;C:\Users\Administrator\AppData\Local\Yarn\bin;E:\application\adb;E:\application\IntelliJ IDEA 2018.3.5\bin;;C:\Program Files\Java\jre1.8.0_191\bin;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Users\Administrator\AppData\Roaming\npm
Yarn version:
1.6.0
Node version:
10.16.0
Platform:
win32 x64
Trace:
Error: ENOENT: no such file or directory, copyfile 'C:\Users\Administrator\AppData\Local\Yarn\Cache\v1\npm-ms-2.1.2-d09d1f357b443f493382a8eb3ccd183872ae6009\index.js' -> 'D:\biz.qingxiao.com\node_modules\@babel\core\node_modules\ms\index.js'
npm manifest:
{
"private": true,
"scripts": {
"start": "set NODE_ENV=development&&set PORT=80 && roadhog server",
"build": "set NODE_ENV=production&&roadhog build",
"test-build": "set NODE_ENV=testenv&&roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint",
"lib": "webpack --config webpackconfig/webpack.dll.config.js"
},
"dependencies": {
"@antv/data-set": "^0.10.2",
"antd": "^3.20.3",
"axios": "^0.18.0",
"babel-plugin-import": "^1.6.7",
"babel-polyfill": "^6.26.0",
"bizcharts": "^3.5.5",
"bizcharts-plugin-slider": "^2.1.1-beta.1",
"blueimp-md5": "^2.10.0",
"bundle-loader": "^0.5.6",
"clipboard": "^2.0.0",
"co": "^4.6.0",
"console-polyfill": "^0.3.0",
"cropper": "^3.1.4",
"dva": "^2.1.0",
"dva-loading": "^1.0.4",
"echarts": "^4.0.4",
"es3ify-loader": "^0.2.0",
"es5-shim": "^4.5.10",
"eventsource-polyfill": "^0.9.6",
"fetch-ie8": "^1.5.0",
"fetch-jsonp": "^1.1.3",
"jquery": "^3.3.1",
"lodash": "^4.17.5",
"mockjs": "^1.0.1-beta3",
"path-to-regexp": "^2.1.0",
"qrcode.react": "^0.8.0",
"qs": "^6.5.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"video-react": "^0.14.1",
"xlsx": "^0.15.0"
},
"devDependencies": {
"babel-eslint": "^8.2.2",
"babel-plugin-dva-hmr": "^0.3.2",
"es3ify-loader": "^0.2.0",
"eslint": "^4.14.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-umi": "^0.1.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.1.0",
"html-webpack-plugin": "^3.1.0",
"husky": "^0.12.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.5.0-beta.4",
"webpack": "^3.8.1"
}
}
yarn manifest:
No manifest
Lockfile:
No lockfile
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment