mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
38 lines
774 B
JavaScript
38 lines
774 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
'NODE_ENV': JSON.stringify('production')
|
|
}
|
|
})
|
|
],
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.css$/,
|
|
loader: 'style-loader!css-loader'
|
|
},
|
|
{
|
|
test: /\.png$/i,
|
|
loader: 'url-loader?limit=100000'
|
|
},
|
|
{
|
|
test: /\.jsx?$/,
|
|
exclude: /(node_modules|bower_components)/,
|
|
loader: 'babel' // 'babel-loader' is also a legal name to reference
|
|
}
|
|
],
|
|
noParse: [
|
|
/jszip\.js$/
|
|
]
|
|
},
|
|
entry: './js/main.js',
|
|
output: {
|
|
filename: 'winamp.js',
|
|
publicPath: '/built/',
|
|
path: path.resolve(__dirname, 'built')
|
|
}
|
|
};
|