From dc2a232926c673b68e987abb7f356b7bf079283a Mon Sep 17 00:00:00 2001 From: Hermann <blumh@student.ethz.ch> Date: Thu, 3 May 2018 20:01:20 +0200 Subject: [PATCH] inclide source of material-design-components for babel to resolve uglify building issues --- webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 5853b51..cf06a0d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,6 @@ const publicPath = '/dist'; +const path = require('path'); const webpack = require('webpack'); const config = { @@ -46,7 +47,10 @@ const config = { }, { test: /\.js$/, // Check for all js files - exclude: /node_modules/, + include: [ + path.resolve(__dirname, './src'), + path.resolve(__dirname, 'node_modules/@material'), + ], use: [{ loader: 'babel-loader', options: { -- GitLab