2017-04-13 23:24:31 +02:00
|
|
|
module.exports = {
|
|
|
|
entry: './flatisfy/web/js_src/main.js',
|
|
|
|
output: {
|
2017-04-25 15:58:06 +02:00
|
|
|
path: __dirname + '/flatisfy/web/static/assets/',
|
|
|
|
filename: 'bundle.js',
|
|
|
|
publicPath: '/assets/'
|
2017-04-13 23:24:31 +02:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /(node_modules|bower_components)/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader',
|
|
|
|
options: {
|
|
|
|
loaders: {
|
|
|
|
js: 'babel-loader'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
loader: 'style-loader!css-loader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(jpe?g|png|gif|svg)$/i,
|
|
|
|
loaders: [
|
|
|
|
'file-loader?hash=sha512&digest=hex&name=[hash].[ext]',
|
|
|
|
{
|
|
|
|
loader: 'image-webpack-loader',
|
|
|
|
query: {
|
|
|
|
bypassOnDebug: true,
|
|
|
|
'optipng': {
|
|
|
|
optimizationLevel: 7
|
|
|
|
},
|
|
|
|
'gifsicle': {
|
|
|
|
interlaced: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-04-25 15:58:06 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
|
|
|
loader: "url-loader?limit=10000&mimetype=application/font-woff"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
|
|
|
loader: "file-loader"
|
2017-04-13 23:24:31 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'masonry': 'masonry-layout',
|
|
|
|
'isotope': 'isotope-layout'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|