Skip to content

Commit

Permalink
remove reliance of separate css file
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTyler committed Mar 20, 2023
1 parent 0c4d46c commit 6438af8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ npm install react-dice-complete
```javascript
import React, { useRef } from 'react'
import ReactDice from 'react-dice-complete'
import 'react-dice-complete/dist/react-dice-complete.css'

const MyDiceApp = () => {

Expand Down
8 changes: 1 addition & 7 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { resolve } = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

module.exports = {
mode: 'production',
Expand Down Expand Up @@ -36,16 +35,11 @@ module.exports = {
},
{
test: /\.(css|scss)$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader'],
use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
},
],
},
optimization: {
moduleIds: 'named',
},
plugins: [
new MiniCssExtractPlugin({
filename: 'react-dice-complete.css',
}),
],
}

0 comments on commit 6438af8

Please sign in to comment.