1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00
joplin/spa_client/webpack.dev.config.js
2016-12-23 18:47:38 +01:00

33 lines
590 B
JavaScript
Executable File

// NOT USED
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'./src/js/app'
],
target: 'web',
devtool: 'eval-source-map',
output: {
path: __dirname + '/src/js/',
filename: 'app.min.js',
publicPath: '/js/'
},
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
include: path.join(__dirname, './src/js/')
}]
},
plugins: [
new webpack.ProvidePlugin({
'Promise': 'es6-promise'
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"development"'
})
]
};