35 lines
865 B
JavaScript
35 lines
865 B
JavaScript
var webpack = require('webpack');
|
|
var webpackMerge = require('webpack-merge');
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
var commonConfig = require('./webpack.common.js');
|
|
var helpers = require('./helpers');
|
|
|
|
const SETTINGS = {
|
|
API_URL: 'http://localhost:52281/v1',
|
|
API_IDENTIFIER: "138659EBEBBF408AA1282D46EBDFBDC7"
|
|
};
|
|
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
|
|
output: {
|
|
path: helpers.root('dist'),
|
|
publicPath: 'http://localhost:8080/',
|
|
filename: '[name].js',
|
|
chunkFilename: '[id].chunk.js'
|
|
},
|
|
|
|
plugins: [
|
|
new ExtractTextPlugin('[name].css'),
|
|
new webpack.DefinePlugin({
|
|
SETTINGS: JSON.stringify(SETTINGS)
|
|
})
|
|
],
|
|
|
|
devServer: {
|
|
historyApiFallback: true,
|
|
stats: 'minimal'
|
|
}
|
|
});
|