Created
April 11, 2016 18:25
-
-
Save tkssharma/1f2fba3d97a1060baf93c3ae7654eb8f to your computer and use it in GitHub Desktop.
Webpack Single Entry
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
"use strict"; | |
var path = require("path"); | |
var Webpack = require("webpack"); | |
// Our configuration | |
module.exports = { | |
// Define the entry point | |
entry: path.resolve(__dirname, "js", "app.js"), | |
// Output configuration | |
output: { | |
path: path.resolve(__dirname, "assets"), | |
filename: "bundle.js" | |
}, | |
module: { | |
loaders: [ | |
// Inform about CSS loaders so that it can be bundled too | |
{ test: /\.css$/, loader: "style-loader!css-loader" } | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment