Skip to content

Commit

Permalink
maint(webpack): Configure devServer static directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Jan 24, 2022
1 parent f4fd73f commit f2507b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ module.exports = async (env, argv) => {
config = patternslib_config(env, argv, config);
config.output.path = path.resolve(__dirname, "dist/");

if (process.env.NODE_ENV === "development") {
config.devServer.static.directory = __dirname;
}

return config;
};

0 comments on commit f2507b0

Please sign in to comment.