mirror of
https://github.com/xodio/xod.git
synced 2026-03-25 10:06:55 +01:00
36 lines
743 B
JavaScript
36 lines
743 B
JavaScript
|
|
const path = require('path');
|
|
const webpack = require('webpack');
|
|
const validate = require('webpack-validator');
|
|
const merge = require('webpack-merge');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
|
|
const baseConfig = require('./base.js');
|
|
|
|
const config = merge.smart(baseConfig, {
|
|
output: {
|
|
path: path.join(__dirname, '../dist/web'),
|
|
publicPath: 'http://localhost:8080/',
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /app\/.*\.jsx?$/,
|
|
loaders: ['react-hot'],
|
|
},
|
|
{
|
|
test: /targets\/.*\.js$/,
|
|
loader: 'null',
|
|
},
|
|
],
|
|
},
|
|
devServer: {
|
|
hot: true,
|
|
host: 'localhost',
|
|
port: 8080,
|
|
contentBase: './dist/web/',
|
|
},
|
|
});
|
|
|
|
module.exports = validate(config);
|