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"
|
2016-06-05 17:36:55 +02:00
|
|
|
}),
|
|
|
|
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
|
2016-02-14 17:14:30 +01:00
|
|
|
],
|
2016-02-16 12:26:05 +01:00
|
|
|
entry: {
|
2021-03-27 04:51:45 +01:00
|
|
|
app: './resources/scripts/app/app.coffee',
|
|
|
|
embed: './resources/scripts/embed/embed.coffee'
|
2016-02-16 12:26:05 +01:00
|
|
|
},
|
2016-02-14 17:14:30 +01:00
|
|
|
output: {
|
|
|
|
path: __dirname + '/public',
|
2016-02-16 12:26:05 +01:00
|
|
|
filename: './build/scripts/[name].js'
|
2016-02-14 18:27:57 +01:00
|
|
|
// publicPath should be defined in the dev config!
|
2016-02-14 17:14:30 +01:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ["", ".webpack.js", ".web.js", ".js", ".coffee"]
|
|
|
|
}
|
|
|
|
};
|