chore: eslint & prettier nits

This commit is contained in:
endiliey 2018-08-11 02:54:34 +08:00
parent a4cc782858
commit 15ce4a95e2
4 changed files with 68 additions and 69 deletions

View file

@ -1 +1,3 @@
generated generated
__fixtures__
dist

View file

@ -68,7 +68,6 @@
"semver": "^5.5.0", "semver": "^5.5.0",
"static-site-generator-webpack-plugin": "^3.4.1", "static-site-generator-webpack-plugin": "^3.4.1",
"webpack": "^4.16.3", "webpack": "^4.16.3",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-chain": "^4.8.0", "webpack-chain": "^4.8.0",
"webpack-nicelog": "^2.2.1", "webpack-nicelog": "^2.2.1",
"webpack-serve": "^2.0.2" "webpack-serve": "^2.0.2"

View file

@ -8,9 +8,9 @@ const loadSetup = async name => {
switch (name) { switch (name) {
case 'simple': case 'simple':
return await load(simpleWebsite); return load(simpleWebsite);
case 'custom': case 'custom':
return await load(customWebsite); return load(customWebsite);
default: default:
return {}; return {};
} }

View file

@ -1,6 +1,4 @@
import webpack from 'webpack'; import webpack from 'webpack';
import path from 'path';
import createBaseConfig from '@lib/webpack/base';
import createDevConfig from '@lib/webpack/dev'; import createDevConfig from '@lib/webpack/dev';
import createProdConfig from '@lib/webpack/prod'; import createProdConfig from '@lib/webpack/prod';
import loadSetup from '../loadSetup'; import loadSetup from '../loadSetup';