$
This commit is contained in:
parent
09c83217f6
commit
294598a814
17381
package-lock.json
generated
17381
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
{"name":"parcoursup-analytics","version":"1.0.0","description":"","main":"index.js","scripts":{"test":"nyc --require esm --require jsdom-global/register --require @riotjs/register mocha src/**/*.spec.js","cov":"nyc report --reporter=text-lcov","cov-html":"nyc report --reporter=html","build":"webpack --mode production","prepublishOnly":"npm test","start":"webpack serve --mode development --hot --port 3000"},"experiments":{"topLevelAwait": true},"author":"","license":"ISC","devDependencies":{"@riotjs/compiler":"^6.3.2","@riotjs/register":"^6.0.1","@riotjs/webpack-loader":"^6.0.0","chai":"^4.3.6","esm":"^3.2.25","html-webpack-plugin":"^5.5.0","jsdom":"^20.0.0","jsdom-global":"^3.0.2","mocha":"^8.4.0","nyc":"^15.1.0","webpack":"^5.75.0","webpack-cli":"^4.10.0","webpack-dev-server":"^4.10.0"},"dependencies":{"@riotjs/hot-reload":"^6.0.1","@riotjs/lazy":"^2.0.2","@riotjs/route":"^8.0.2","node-sass":"^8.0.0","riot":"^7.0.3"}}
|
@ -1,72 +0,0 @@
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
app: './src/index.js',
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: '[name].bundle.js',
|
||||
clean: true
|
||||
},
|
||||
externals: {
|
||||
url: 'url',
|
||||
},
|
||||
devtool: 'source-map',
|
||||
optimization: {
|
||||
runtimeChunk: {
|
||||
name: 'runtime',
|
||||
},
|
||||
splitChunks: {
|
||||
chunks: 'async',
|
||||
minSize: 20000,
|
||||
minRemainingSize: 0,
|
||||
minChunks: 1,
|
||||
maxAsyncRequests: 30,
|
||||
maxInitialRequests: 30,
|
||||
enforceSizeThreshold: 50000,
|
||||
cacheGroups: {
|
||||
defaultVendors: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
priority: -10,
|
||||
reuseExistingChunk: true,
|
||||
},
|
||||
default: {
|
||||
minChunks: 2,
|
||||
priority: -20,
|
||||
reuseExistingChunk: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
devServer: {
|
||||
hot: true,
|
||||
open: true,
|
||||
historyApiFallback: true
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.riot$/,
|
||||
exclude: /node_modules/,
|
||||
use: [{
|
||||
loader: '@riotjs/webpack-loader',
|
||||
options: {
|
||||
hot: true
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'src/index.html'
|
||||
}),
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
],
|
||||
experiments: {
|
||||
topLevelAwait: true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user