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

39 lines
725 B
JavaScript
Executable File

var path = require('path');
var webpack = require('webpack');
module.exports = {
quiet: true,
entry: [
'./src/js/app.jsx'
],
output: {
path: __dirname + '/dist/js/',
filename: 'app.js',
publicPath: '/js/'
},
module: {
loaders: [{
test: /\.(jsx|js)$/,
loaders: ['babel'],
include: path.join(__dirname, './src/js/')
}]
},
resolve: {
alias: {
components: path.resolve(__dirname, './src/js/components'),
models: path.resolve(__dirname, './src/js/models'),
},
},
plugins: [
// new webpack.optimize.UglifyJsPlugin({
// minimize: true,
// compress: {
// warnings: false
// }
// }),
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"development"'
})
]
};