Skip to content

Commit

Permalink
Exporting the new API for dev server config
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Jan 13, 2020
1 parent f6bd1e0 commit dc8a3b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/craco/index.js
Expand Up @@ -14,6 +14,7 @@ const { ESLINT_MODES } = require("./lib/features/webpack/eslint");
const { POSTCSS_MODES } = require("./lib/features/webpack/style/postcss");
const { createJestConfig } = require("./lib/features/test/api");
const { createWebpackDevConfig, createWebpackProdConfig } = require("./lib/features/webpack/api");
const { createDevServerConfigProviderProxy } = require("./lib/features/dev-server/api");

module.exports = {
getLoader,
Expand All @@ -34,5 +35,6 @@ module.exports = {
POSTCSS_MODES,
createJestConfig,
createWebpackDevConfig,
createWebpackProdConfig
createWebpackProdConfig,
createDevServerConfigProviderProxy
};
4 changes: 2 additions & 2 deletions packages/craco/lib/features/webpack/eslint.js
Expand Up @@ -58,7 +58,7 @@ function useEslintConfigFile(loader) {
};
}

log("Overwrited ESLint config to use a config file.");
log("Overrided ESLint config to use a config file.");
}

function enableEslintIgnoreFile(loader) {
Expand All @@ -70,7 +70,7 @@ function enableEslintIgnoreFile(loader) {
};
}

log("Overwrited ESLint config to enable an ignore file.");
log("Overrided ESLint config to enable an ignore file.");
}

function applyLoaderOptions(loader, loaderOptions, context) {
Expand Down

0 comments on commit dc8a3b9

Please sign in to comment.