mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
37 lines
1008 B
JavaScript
37 lines
1008 B
JavaScript
/* eslint-disable no-var, strict */
|
|
require('babel-core/register');
|
|
|
|
const webpack = require('webpack');
|
|
const WebpackDevServer = require('webpack-dev-server');
|
|
const environment = require('../environment');
|
|
const config = require('./webpack.development.config');
|
|
|
|
config.devServer = {
|
|
hot: true
|
|
}
|
|
config.plugins = [
|
|
// Used for hot-reload
|
|
new webpack.HotModuleReplacementPlugin()
|
|
];
|
|
|
|
new WebpackDevServer(webpack(config), {
|
|
publicPath: 'http://localhost:8080/assets/',
|
|
// Configure hot replacement
|
|
// The rest is terminal configurations
|
|
quiet: false,
|
|
noInfo: true,
|
|
historyApiFallback: {
|
|
index: './templates/index.html'
|
|
},
|
|
stats: {
|
|
colors: true
|
|
}
|
|
// We fire up the development server and give notice in the terminal
|
|
// that we are starting the initial bundle
|
|
}).listen(8080, environment.HOST, function(err, result) {
|
|
|
|
if (err) {
|
|
console.log(err);
|
|
}
|
|
console.log('The asset server is listening at localhost: 8080');
|
|
}); |