Skip to content

Commit

Permalink
Update dependencies of demo website and remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mpourismaiel committed Aug 7, 2020
1 parent 88ea6bf commit dda1849
Show file tree
Hide file tree
Showing 6 changed files with 2,334 additions and 2,871 deletions.
24 changes: 8 additions & 16 deletions exampleSite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,15 @@
"start": "webpack --watch --progress"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"css-loader": "^1.0.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.11",
"mini-css-extract-plugin": "^0.4.1",
"node-sass": "^4.9.2",
"sass-loader": "^7.0.3",
"style-loader": "^0.21.0",
"url-loader": "^1.0.1",
"webpack": "^4.15.1",
"webpack-cli": "^3.0.8"
"@babel/core": "^7.11.1",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"babel-loader": "^8.1.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"react": "^16.4.1",
"react-dom": "^16.4.1"
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
}
58 changes: 5 additions & 53 deletions exampleSite/static/counter.js

Large diffs are not rendered by default.

32 changes: 3 additions & 29 deletions exampleSite/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
entry: {
Expand All @@ -10,46 +9,21 @@ module.exports = {
filename: '[id].js'
},
resolve: {
extensions: ['.js', '.jsx', '.css', '.sass', '.scss'],
extensions: ['.js', '.jsx'],
modules: [path.join(process.cwd(), 'src'), 'node_modules'],
},
mode: process.env === 'production' ? 'production' : 'development',
module: {
rules: [{
test: /\.scss$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader'
},
{
loader: 'sass-loader'
}
],
}, {
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['env', 'react'],
},
},
}, {
test: /\.(woff|woff2|eot|svg|ttf)$/,
use: {
loader: "url-loader",
options: {
limit: 50000,
name: "./fonts/[name].[ext]",
presets: ['@babel/env', '@babel/react'],
},
},
}],
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css'
}),
],
plugins: [],
};
Loading

0 comments on commit dda1849

Please sign in to comment.