mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 02:27:21 +02:00
chore: eslint & prettier nits
This commit is contained in:
parent
a4cc782858
commit
15ce4a95e2
4 changed files with 68 additions and 69 deletions
|
@ -1 +1,3 @@
|
||||||
generated
|
generated
|
||||||
|
__fixtures__
|
||||||
|
dist
|
|
@ -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"
|
||||||
|
|
|
@ -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 {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue