Updated Sparky fe to be on 2.0.0
[aai/sparky-fe.git] / webpack.devConfig.js
index 9f13b15..232e541 100644 (file)
@@ -31,15 +31,16 @@ module.exports = {
     bundle: [
       'app/main.app.jsx',
       'webpack/hot/only-dev-server'
-    ],
-    'editAttributes/editAttributesBundle': [
-      'editAttributes/main.app.jsx',
-      'webpack/hot/only-dev-server'
     ]
   },
+  externals: [
+      {
+        xmlhttprequest: 'XMLHttpRequest'
+      }
+   ],
   output: {
-    path: path.join(__dirname, 'dist'),
-    publicPath: ``,
+    path: path.join(__dirname, 'dist/aai'),
+    publicPath: 'https://localhost:8001/',
     filename: '[name].js',
     sourceMapFilename: '[name].js.map'
   },
@@ -49,13 +50,13 @@ module.exports = {
       app: 'src/app',
       'generic-components': 'src/generic-components',
       utils: 'src/utils',
-      images: 'resources/images',
-      editAttributes: 'src/editAttributes'
+      images: 'resources/images'
     },
     extensions: ["", ".webpack.js", ".web.js", ".js", ".json", ".jsx"]
   },
   devServer: {
     port: devPort,
+    disableHostCheck: true,
     historyApiFallback: true,
     publicPath: ``,
     contentBase: path.join(__dirname, 'dist'),
@@ -70,7 +71,7 @@ module.exports = {
   },
   module: {
     loaders: [
-      {test: /\.(js|jsx)$/, loaders: ['babel-loader', 'eslint-loader'], exclude: /node_modules/},
+      {test: /\.(js|jsx)$/, loaders: ['babel-loader'], exclude: /node_modules/},
       {test: /\.(css|scss)$/, loaders: ['style-loader', 'css-loader', 'sass-loader']},
       // required for font icons
       {test: /\.(woff|woff2|ttf|eot|otf)(\?.*)?$/, loader: 'url-loader?limit=163840&mimetype=application/font-woff&name=[name].[ext]'},
@@ -81,7 +82,8 @@ module.exports = {
   },
   eslint: {
     configFile: './.eslintrc',
-    emitError: true,
+    failOnError: false,
+    emitError: false,
     emitWarning: true
   },
   plugins: [