This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sarah Emerson
committed
Apr 10, 2022
1 parent
d4ca472
commit 720acef
Showing
4 changed files
with
1,928 additions
and
4,649 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,23 @@ | ||
const path = require('path') | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | ||
|
||
module.exports = { | ||
entry: ['./client/index.js', './client/styles/index.scss'], | ||
entry: ['./client/index.js'], | ||
output: { | ||
path: path.join(__dirname, '..', 'server', 'public'), | ||
filename: 'bundle.js' | ||
filename: 'bundle.js', | ||
}, | ||
mode: 'development', | ||
plugins: [ | ||
new MiniCssExtractPlugin({ | ||
filename: 'styles.css', | ||
chunkFilename: '[id].css', | ||
ignoreOrder: false // Enable to remove warnings about conflicting order | ||
}) | ||
], | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
loader: 'babel-loader', | ||
exclude: /node_modules/ | ||
exclude: /node_modules/, | ||
}, | ||
{ | ||
test: /\.(sa|sc|c)ss$/, | ||
use: [ | ||
{ | ||
loader: MiniCssExtractPlugin.loader | ||
}, | ||
'css-loader', | ||
'sass-loader' | ||
] | ||
} | ||
] | ||
], | ||
}, | ||
resolve: { | ||
extensions: ['.js', '.jsx'] | ||
extensions: ['.js', '.jsx'], | ||
}, | ||
devtool: 'source-map' | ||
devtool: 'source-map', | ||
} |
Oops, something went wrong.