Skip to content

Instantly share code, notes, and snippets.

@gpincheiraa
Last active September 26, 2017 22:47
Show Gist options
  • Save gpincheiraa/483de70efbe01ef3eb2f913500230347 to your computer and use it in GitHub Desktop.
Save gpincheiraa/483de70efbe01ef3eb2f913500230347 to your computer and use it in GitHub Desktop.
webpack.config.js - First Impressions using jest for TDD over AngularJS > 1.5.x — Part I
module.exports = {
entry: [
"./src/index.js"
],
output: {
path: __dirname + "/dist",
filename: "index.bundle.js"
},
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"},
{ test: /\.css$/, loader: "style-loader!css-loader" },
{ test: /\.html$/, loader: "html-loader" }
]
},
devtool: "eval-source-map",
devServer: {
filename: "index.bundle.js",
contentBase: "./src",
port: 3000,
publicPath: "/",
stats: {
colors: true
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment