Skip to content

Instantly share code, notes, and snippets.

@samsch
Created April 14, 2017 17:18
Show Gist options
  • Save samsch/15a058bd059b1bfe57d2400003348736 to your computer and use it in GitHub Desktop.
Save samsch/15a058bd059b1bfe57d2400003348736 to your computer and use it in GitHub Desktop.
Added module property to webpack config.
},
devServer: {
contentBase: path.join(__dirname, "public"),
https: true,
},
+ module: {
+ rules: [
+ {
+ test : /\.js/,
+ include: path.resolve(__dirname, 'src/'),
+ use: ['babel-loader'],
+ },
+ ],
+ },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment