summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2017-05-13 00:36:37 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2017-05-13 00:36:37 -0700
commit35a1e06abe842e4d1355dff55eab608cac4f3c4f (patch)
treeef415d30694c6a6ef32c08e02921aab4bd9d23e9 /config
parente0359a93ff06fdd92e254d8110e0df0291511ebf (diff)
Fix dev run mode
Problem with the paths was causing webpack-dev-server problems
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 444df77..6b7780d 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -1,18 +1,17 @@
const path = require('path')
-const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const SRC_PATH = path.join(__dirname, '..', 'src')
-const BUILD_PATH = path.join(__dirname, '..', 'build', 'static')
+const BUILD_PATH = path.join(__dirname, '..', 'build')
const PUBLIC_PATH = path.join(__dirname, '..', 'public')
module.exports = {
devtool: 'source-map',
entry: './src/index.js',
output: {
- filename: 'bundle.js',
+ filename: './static/bundle.js',
path: BUILD_PATH
},
module: {
@@ -81,10 +80,9 @@ module.exports = {
}]
},
plugins: [
- new ExtractTextPlugin('style.css'),
+ new ExtractTextPlugin('./static/style.css'),
new HtmlWebpackPlugin({
template: path.join(PUBLIC_PATH, 'index.html'),
- filename: '../index.html',
inject: 'body'
})
]