Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created April 11, 2016 18:25
Show Gist options
  • Save tkssharma/1f2fba3d97a1060baf93c3ae7654eb8f to your computer and use it in GitHub Desktop.
Save tkssharma/1f2fba3d97a1060baf93c3ae7654eb8f to your computer and use it in GitHub Desktop.
Webpack Single Entry
"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