Skip to content
Snippets Groups Projects
Commit 41f3aa50 authored by Jack Reed's avatar Jack Reed
Browse files

remove extra webpack config in favor of combining for simplicity

parent 9671aff5
Branches
No related tags found
No related merge requests found
const path = require('path');
module.exports = [
{
entry: './src/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'mirador.min.js',
},
resolve: { extensions: ['.js'] },
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
},
{
test: /\.scss$/,
use: [
'style-loader', // creates style nodes from JS strings
'css-loader', // translates CSS into CommonJS
'sass-loader', // compiles Sass to CSS, using Node Sass by default
],
}],
},
},
];
...@@ -6,10 +6,9 @@ ...@@ -6,10 +6,9 @@
"scripts": { "scripts": {
"lint": "node_modules/.bin/eslint ./", "lint": "node_modules/.bin/eslint ./",
"server": "node_modules/.bin/http-server -p 4444", "server": "node_modules/.bin/http-server -p 4444",
"test": "npm run build && npm run build:dev && npm run lint && node_modules/.bin/jest", "test": "npm run build && npm run lint && node_modules/.bin/jest",
"test:watch": "npm test -- --watch", "test:watch": "npm test -- --watch",
"build": "node_modules/.bin/webpack", "build": "node_modules/.bin/webpack"
"build:dev": "node_modules/.bin/webpack --config front-end.config.js"
}, },
"author": "Drew Winget <scipioaffricanus@gmail.com> (https://aeschylus.net/)", "author": "Drew Winget <scipioaffricanus@gmail.com> (https://aeschylus.net/)",
"license": "MIT", "license": "MIT",
......
...@@ -19,4 +19,28 @@ module.exports = [ ...@@ -19,4 +19,28 @@ module.exports = [
], ],
}, },
}, },
{
entry: './src/index.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'mirador.min.js',
},
resolve: { extensions: ['.js'] },
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
},
{
test: /\.scss$/,
use: [
'style-loader', // creates style nodes from JS strings
'css-loader', // translates CSS into CommonJS
'sass-loader', // compiles Sass to CSS, using Node Sass by default
],
}],
},
},
]; ];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment