diff --git a/README.md b/README.md index d6caa88..4659a8e 100644 --- a/README.md +++ b/README.md @@ -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 = () => { diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 8777bd2..ada1b81 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -1,5 +1,4 @@ const { resolve } = require('path') -const MiniCssExtractPlugin = require('mini-css-extract-plugin') module.exports = { mode: 'production', @@ -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', - }), - ], }