mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
26 lines
590 B
JavaScript
26 lines
590 B
JavaScript
const webpack = require("webpack");
|
|
const config = require("./webpack.config");
|
|
|
|
const cdnUrl = process.env.CDN_URL || "/";
|
|
|
|
config.devtool = "source-map";
|
|
|
|
config.plugins = [
|
|
new webpack.DefinePlugin({
|
|
"process.env": {
|
|
NODE_ENV: JSON.stringify("production")
|
|
},
|
|
SENTRY_DSN: JSON.stringify(
|
|
"https://12b6be8ef7c44f28ac37ab5ed98fd294@sentry.io/146021"
|
|
)
|
|
}),
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
sourceMap: true
|
|
})
|
|
];
|
|
|
|
config.output.publicPath = `${cdnUrl}built/`;
|
|
|
|
config.entry.winamp.unshift("./js/googleAnalytics.min.js");
|
|
|
|
module.exports = config;
|