aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/webpack/dev.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/config/webpack/dev.js')
-rw-r--r--app/config/webpack/dev.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/app/config/webpack/dev.js b/app/config/webpack/dev.js
index 771df65b..b6551152 100644
--- a/app/config/webpack/dev.js
+++ b/app/config/webpack/dev.js
@@ -1,13 +1,12 @@
1const webpackMerge = require('webpack-merge'); 1const webpackMerge = require('webpack-merge');
2const webpack = require('webpack'); 2const webpack = require('webpack');
3const path = require('path');
4const commonConfig = require('./common.js'); 3const commonConfig = require('./common.js');
5 4
6module.exports = function () { 5module.exports = function () {
7 return webpackMerge(commonConfig(), { 6 return webpackMerge(commonConfig(), {
8 devtool: 'eval-source-map', 7 devtool: 'eval-source-map',
9 output: { 8 output: {
10 filename: '[name].dev.js' 9 filename: '[name].dev.js',
11 }, 10 },
12 11
13 devServer: { 12 devServer: {
@@ -34,9 +33,9 @@ module.exports = function () {
34 use: { 33 use: {
35 loader: 'babel-loader', 34 loader: 'babel-loader',
36 options: { 35 options: {
37 presets: ['env'] 36 presets: ['env'],
38 } 37 },
39 } 38 },
40 }, 39 },
41 { 40 {
42 test: /\.(s)?css$/, 41 test: /\.(s)?css$/,
@@ -46,17 +45,17 @@ module.exports = function () {
46 loader: 'css-loader', 45 loader: 'css-loader',
47 options: { 46 options: {
48 importLoaders: 1, 47 importLoaders: 1,
49 } 48 },
50 }, 49 },
51 'postcss-loader', 50 'postcss-loader',
52 'sass-loader' 51 'sass-loader',
53 ] 52 ],
54 }, 53 },
55 { 54 {
56 test: /\.(jpg|png|gif|svg|eot|ttf|woff|woff2)$/, 55 test: /\.(jpg|png|gif|svg|eot|ttf|woff|woff2)$/,
57 use: 'url-loader' 56 use: 'url-loader',
58 }, 57 },
59 ] 58 ],
60 }, 59 },
61 }) 60 });
62}; 61};