2016-02-14 17:14:30 +01:00
|
|
|
var path = require('path');
|
|
|
|
var webpack = require('webpack');
|
|
|
|
|
2016-02-14 18:27:57 +01:00
|
|
|
// NOTE: This is a base config; it's not meant to be used directly!
|
|
|
|
|
2016-02-14 17:14:30 +01:00
|
|
|
module.exports = {
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{test: /\.coffee$/, loader: "coffee"}
|
2016-02-14 18:27:57 +01:00
|
|
|
],
|
|
|
|
noParse: [/pfm-angular-marked\.js/]
|
2016-02-14 17:14:30 +01:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
$: "jquery",
|
|
|
|
jQuery: "jquery"
|
|
|
|
})
|
|
|
|
],
|
|
|
|
entry: './resources/assets/scripts/app/app.coffee',
|
|
|
|
output: {
|
|
|
|
path: __dirname + '/public',
|
2016-02-14 18:27:57 +01:00
|
|
|
filename: './build/scripts/app.js'
|
|
|
|
// publicPath should be defined in the dev config!
|
2016-02-14 17:14:30 +01:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ["", ".webpack.js", ".web.js", ".js", ".coffee"]
|
|
|
|
}
|
|
|
|
};
|