Skip to content

feature(webpack4) Migrate project to webpack4. Prepare for React 16 #1964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feature(webpack4) Cleanup in config
  • Loading branch information
EugeneHlushko committed Apr 10, 2018
commit 714290e77c432d5535ddb29c9ec9fb859366f167
7 changes: 2 additions & 5 deletions antwar.bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ const antwar = require('antwar');

const environment = process.argv[2];

const antwarConfig = require.resolve("./antwar.config.js");
const webpackConfig = require.resolve("./webpack.config.js");

// Patch Babel env to make HMR switch work
process.env.BABEL_ENV = environment;

antwar[environment]({
environment,
configurationPaths: {
antwar: antwarConfig,
webpack: webpackConfig,
antwar: require.resolve("./antwar.config.js"),
webpack: require.resolve("./webpack.config.js"),
},
}).then(() => {
if (environment !== "build") {
Expand Down