mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
27 lines
676 B
JavaScript
27 lines
676 B
JavaScript
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
// http://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack
|
|
new webpack.ProvidePlugin({
|
|
// Automtically detect jQuery and $ as free var in modules
|
|
// and inject the jquery library
|
|
// This is required by many jquery plugins
|
|
jquery: "jquery",
|
|
jQuery: "jquery",
|
|
$: "jquery"
|
|
}),
|
|
],
|
|
|
|
entry: "./src/engine.js",
|
|
output: {
|
|
path: __dirname + "/dist/",
|
|
filename: "bundle.js"
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.css$/, loader: "style!css" },
|
|
]
|
|
}
|
|
};
|