mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
dependencies updated
This commit is contained in:
parent
b4c2f80559
commit
47f36e8fb3
6 changed files with 3293 additions and 3244 deletions
4
.babelrc
4
.babelrc
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"presets": ["env", "react"],
|
||||
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
|
||||
}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -7,4 +7,5 @@ dist
|
|||
|
||||
# misc
|
||||
.DS_Store
|
||||
npm-debug.log
|
||||
npm-debug.log
|
||||
.cache
|
||||
|
|
@ -13,7 +13,11 @@ module.exports = {
|
|||
path.resolve(__dirname, '../node_modules/stremio-icons/dom')
|
||||
],
|
||||
use: {
|
||||
loader: 'babel-loader'
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env', '@babel/preset-react'],
|
||||
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread']
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -27,7 +31,7 @@ module.exports = {
|
|||
loader: 'css-loader',
|
||||
options: {
|
||||
modules: true,
|
||||
localIdentName: '[path][name]_[local]_[hash:base64:5]',
|
||||
localIdentName: '[local]_[hash:base64:5]',
|
||||
importLoaders: 2
|
||||
}
|
||||
},
|
||||
|
|
|
|||
47
package.json
47
package.json
|
|
@ -13,9 +13,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"classnames": "2.2.6",
|
||||
"prop-types": "15.6.1",
|
||||
"react": "^16.4.1",
|
||||
"react-dom": "^16.4.1",
|
||||
"prop-types": "15.6.2",
|
||||
"react": "16.6.0",
|
||||
"react-dom": "16.6.0",
|
||||
"react-router": "4.3.1",
|
||||
"react-router-dom": "4.3.1",
|
||||
"stremio-addon-client": "git+ssh://git@github.com/Stremio/stremio-addon-client.git#v1.5.1",
|
||||
|
|
@ -30,27 +30,28 @@
|
|||
"stremio-translations": "git+ssh://git@github.com/Stremio/stremio-translations.git#v1.41.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/react": "^3.4.11",
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-loader": "7.1.4",
|
||||
"babel-plugin-transform-class-properties": "6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
||||
"babel-preset-env": "1.7.0",
|
||||
"babel-preset-react": "6.24.1",
|
||||
"copy-webpack-plugin": "4.5.2",
|
||||
"css-loader": "0.28.11",
|
||||
"@babel/core": "7.1.2",
|
||||
"@babel/plugin-proposal-class-properties": "7.1.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
|
||||
"@babel/preset-env": "7.1.0",
|
||||
"@babel/preset-react": "7.0.0",
|
||||
"@babel/runtime": "7.1.2",
|
||||
"@storybook/addon-actions": "4.0.4",
|
||||
"@storybook/addon-links": "4.0.4",
|
||||
"@storybook/addons": "4.0.4",
|
||||
"@storybook/react": "4.0.4",
|
||||
"babel-loader": "8.0.4",
|
||||
"copy-webpack-plugin": "4.6.0",
|
||||
"css-loader": "1.0.1",
|
||||
"html-webpack-plugin": "3.2.0",
|
||||
"less": "3.0.4",
|
||||
"less": "3.8.1",
|
||||
"less-loader": "4.1.0",
|
||||
"postcss-loader": "2.1.5",
|
||||
"style-loader": "0.21.0",
|
||||
"uglifyjs-webpack-plugin": "1.2.7",
|
||||
"webpack": "^4.20.2",
|
||||
"webpack-cli": "3.0.8",
|
||||
"webpack-dev-server": "3.1.4",
|
||||
"@storybook/addon-actions": "^3.4.11",
|
||||
"@storybook/addon-links": "^3.4.11",
|
||||
"@storybook/addons": "^3.4.11",
|
||||
"babel-runtime": "^6.26.0"
|
||||
"postcss-loader": "3.0.0",
|
||||
"style-loader": "0.23.1",
|
||||
"terser-webpack-plugin": "1.1.0",
|
||||
"uglifyjs-webpack-plugin": "2.0.1",
|
||||
"webpack": "4.25.1",
|
||||
"webpack-cli": "3.1.2",
|
||||
"webpack-dev-server": "3.1.10"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
const path = require('path');
|
||||
const HtmlWebPackPlugin = require('html-webpack-plugin');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.js',
|
||||
|
|
@ -19,7 +19,11 @@ module.exports = {
|
|||
path.resolve(__dirname, 'node_modules/stremio-icons/dom')
|
||||
],
|
||||
use: {
|
||||
loader: 'babel-loader'
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env', '@babel/preset-react'],
|
||||
plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread']
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -33,7 +37,7 @@ module.exports = {
|
|||
loader: 'css-loader',
|
||||
options: {
|
||||
modules: true,
|
||||
localIdentName: '[hash:base64:5]',
|
||||
localIdentName: '[local]_[hash:base64:5]',
|
||||
importLoaders: 2
|
||||
}
|
||||
},
|
||||
|
|
@ -73,25 +77,30 @@ module.exports = {
|
|||
devServer: {
|
||||
host: '0.0.0.0'
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
test: /\.js$/,
|
||||
terserOptions: {
|
||||
ecma: 5,
|
||||
mangle: true,
|
||||
warnings: true,
|
||||
output: {
|
||||
comments: false,
|
||||
beautify: false,
|
||||
wrap_iife: true
|
||||
}
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebPackPlugin({
|
||||
template: './src/index.html'
|
||||
}),
|
||||
new UglifyJsPlugin({
|
||||
test: /\.js$/,
|
||||
uglifyOptions: {
|
||||
mangle: true,
|
||||
output: {
|
||||
ecma: 5,
|
||||
comments: false,
|
||||
beautify: false,
|
||||
wrap_iife: true
|
||||
}
|
||||
}
|
||||
}),
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'images', to: 'images' },
|
||||
{ from: 'fonts', to: 'fonts' }
|
||||
])
|
||||
]
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue