Skip to content

Commit

Permalink
added webpack config for debug page
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer committed Dec 5, 2016
1 parent b3ae4c6 commit 3bfb00d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions debug.webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
const webpack = require('webpack');
var CircularDependencyPlugin = require("circular-dependency-plugin");
var ProvidePlugin = webpack.ProvidePlugin;

var config =
{
entry: __dirname + "/debug/main.js",
output: {
path: __dirname + "/build",
filename: "debug.bundle.js"
},
resolve: {
alias: {
'jquery-ui': 'jquery-ui/ui/widgets',
'jquery-ui-css': 'jquery-ui/../../themes/base',
'datatables': __dirname + '/src/js/helper/datatables'
}
},
module: {
loaders: [
{test: /\.css$/, loader: "style!css"},
// image loader
{
test: /\.(jpe?g|png|gif|ico)$/i,
//exclude: /node_modules/,
loader: "file?name=images/[name].[ext]"
},
// font loader
{
test: /\.(ttf|eot|svg|woff2?)(\?v=[a-z0-9=\.]+)?$/i,
loader: "file?name=images/[name].[ext]"
},
// disable AMD for datatables
{
test: require.resolve("datatables.net"),
loader: "imports?define=>false"
}
]
},
plugins: [
new CircularDependencyPlugin(),
new ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
};

module.exports = config;

0 comments on commit 3bfb00d

Please sign in to comment.