Skip to content

Commit

Permalink
feat(webpack): don't use webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jun 29, 2019
1 parent 213a157 commit dd4a3fb
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 1,025 deletions.
21 changes: 9 additions & 12 deletions packages/fusuma/src/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ async function initProcess({ schema }) {
}

async function startProcess(basePath) {
const spinner = loader('Starting with webpack-dev-server...').start();
const spinner = loader('Starting server...').start();
const config = fusuma.combine(await fusuma.read(basePath));
const remoteOrigin = await getRemoteOriginUrl();

start(
{
...config,
internal: {
basePath,
remoteOrigin
}
},
() => {
spinner.stop();
await start({
...config,
internal: {
basePath,
remoteOrigin
}
);
});

spinner.stop();
}

async function buildProcess(basePath, extendedConfig = {}, isConsoleOutput = true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@

exports[`webpack.dev should match settings 1`] = `
Object {
"devServer": Object {
"contentBase": ".",
"disableHostCheck": true,
"hot": true,
"inline": true,
"port": 8080,
"quiet": true,
},
"devtool": "inline-cheap-module-source-map",
"mode": "development",
"output": Object {
"filename": "bundle.js",
},
"plugins": Array [
HotModuleReplacementPlugin {
"fullBuildTimeout": 200,
"multiStep": undefined,
"options": Object {},
"requestTimeout": 10000,
},
FriendlyErrorsWebpackPlugin {
"compilationSuccessInfo": Object {},
"formatters": Array [
Expand Down
Loading

0 comments on commit dd4a3fb

Please sign in to comment.