Browse Source

build: upgrade webpack & karma

dev
Evan You 6 years ago
parent
commit
52f9d3f492
  1. 6
      package.json
  2. 5
      scripts/config.js
  3. 2
      test/unit/karma.base.config.js
  4. 1584
      yarn.lock

6
package.json

@ -106,7 +106,7 @@
"http-server": "^0.11.1",
"jasmine": "^2.99.0",
"jasmine-core": "^2.99.0",
"karma": "^2.0.0",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.1.1",
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.0.1",
@ -116,7 +116,7 @@
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^1.1.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"karma-webpack": "^4.0.0-rc.2",
"lint-staged": "^7.0.0",
"lodash": "^4.17.4",
"lodash.template": "^4.4.0",
@ -139,7 +139,7 @@
"shelljs": "^0.8.1",
"typescript": "^2.7.1",
"uglify-js": "^3.0.15",
"webpack": "^3.11.0",
"webpack": "^4.22.0",
"weex-js-runtime": "^0.23.6",
"weex-styler": "^0.3.0",
"yorkie": "^1.0.1"

5
scripts/config.js

@ -188,6 +188,11 @@ function genConfig (name) {
format: opts.format,
banner: opts.banner,
name: opts.moduleName || 'Vue'
},
onwarn: (msg, warn) => {
if (!/Circular/.test(msg)) {
warn(msg)
}
}
}

2
test/unit/karma.base.config.js

@ -2,6 +2,7 @@ var alias = require('../../scripts/alias')
var webpack = require('webpack')
var webpackConfig = {
mode: 'development',
resolve: {
alias: alias
},
@ -18,7 +19,6 @@ var webpackConfig = {
new webpack.DefinePlugin({
__WEEX__: false,
'process.env': {
NODE_ENV: '"development"',
TRANSITION_DURATION: process.env.CI ? 100 : 50,
TRANSITION_BUFFER: 10
}

1584
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save