Last active
September 26, 2017 22:47
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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