Skip to content

Instantly share code, notes, and snippets.

@laggingreflex
Created November 21, 2015 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laggingreflex/20c97b20269f86549c8c to your computer and use it in GitHub Desktop.
Save laggingreflex/20c97b20269f86549c8c to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
var entryPath = Path.join(__dirname, 'lib/client');
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin');
module.exports = {
cache: true,
devtool: 'source-map',
entry: Path.join(entryPath, 'webpack-entry.js'),
output: {
path: entryPath,
publicPath: 'client/',
filename: 'webpack.min.js',
sourceMapFilename: 'webpack.min.js.map'
},
plugins: [
new webpack.ProvidePlugin({
jQuery: 'jquery',
'window.jQuery': 'jquery',
$: 'jquery',
// angular: 'angular',
// 'window.angular': 'angular',
}),
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment