Commit 41b078ad by Ari Rizzitano

fix webpack config

parent c765a593
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -37,7 +37,6 @@
"eslint-plugin-react": "^6.10.3",
"react-router-dom": "^4.1.1",
"source-map-loader": "^0.2.1",
"static-site-generator-webpack-plugin": "^3.4.1",
"webpack": "^2.4.1",
"webpack-dev-server": "^2.4.4"
},
......
......@@ -19,7 +19,7 @@ const base = {
module: {
rules: [
{
test: /\.js$/,
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_components)/,
use: [
{
......@@ -60,30 +60,6 @@ const additionalConfig = {
],
},
},
// docs builds the doc site for production.
docs: {
plugins: [
new StaticSiteGeneratorPlugin('main', [
'/',
'/header/',
'/inputs/',
], {}),
],
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['env'],
},
},
},
],
},
},
// production builds the library for external consumption
production: {
entry: path.resolve('./src/index.js'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment