4 * Copyright 2016 RIFT.IO Inc
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 * Webpack development server configuration
22 * This file is set up for serving the webpack-dev-server, which will watch for changes and recompile as required if
23 * the subfolder /webpack-dev-server/ is visited. Visiting the root will not automatically reload.
26 var path
= require('path');
27 var webpack
= require('webpack');
33 publicPath
: '/assets/'
40 'webpack/hot/only-dev-server',
41 './src/components/ComposerApp.js'
53 exclude
: /node_modules/,
54 loader
: 'eslint-loader'
60 exclude
: /node_modules/,
64 exclude
: /node_modules/,
65 loader
: 'babel-loader',
67 presets
: ['react', 'es2015']
71 loader
: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
74 loader
: 'style-loader!css-loader'
76 test
: /\.(jpg|woff|woff2|png)$/,
79 test
: /\.(svg)(\?[a-z0-9]+)?$/i,
86 'styles': path
.join(process
.cwd(), './src/styles/'),
87 'libraries': path
.join(process
.cwd(), './src/libraries/'),
88 'components': path
.join(process
.cwd(), './src/components/'),
89 //'stores': '../../../src/stores/',
90 //'actions': '../../../src/actions/',
91 'helpers': path
.join(process
.cwd(), './test/helpers/')
96 new webpack
.HotModuleReplacementPlugin()