mirror of
https://github.com/Findus23/lw1.at.git
synced 2024-09-16 12:13:44 +02:00
fix build
This commit is contained in:
parent
7db82a86ee
commit
4ab7b9d117
3 changed files with 48 additions and 10 deletions
|
@ -17,6 +17,7 @@
|
|||
"mathjax3": "^3.0.0-beta.2",
|
||||
"milligram": "git+https://github.com/Findus23/milligram.git#0fde381605c1159f39efb5c33c9600331fec4e2e",
|
||||
"normalize.css": "^8.0.0",
|
||||
"postcss": "^8.1.1",
|
||||
"raven-js": "^3.27.0",
|
||||
"vue": "^2.5.13",
|
||||
"vue-head": "^2.0.12",
|
||||
|
|
|
@ -105,11 +105,18 @@ module.exports = {
|
|||
process.env.NODE_ENV !== 'production'
|
||||
? 'vue-style-loader'
|
||||
: MiniCssExtractPlugin.loader,
|
||||
'css-loader',
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: {
|
||||
esModule:false
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: "postcss-loader",
|
||||
options: {
|
||||
plugins: [require('autoprefixer')()]
|
||||
postcssOptions: {
|
||||
plugins: [require('autoprefixer')()]
|
||||
}
|
||||
}
|
||||
},
|
||||
'sass-loader'
|
||||
|
@ -123,12 +130,17 @@ module.exports = {
|
|||
: MiniCssExtractPlugin.loader,
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: {importLoaders: 1}
|
||||
options: {
|
||||
importLoaders: 1,
|
||||
esModule:false
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: "postcss-loader",
|
||||
options: {
|
||||
plugins: [require('autoprefixer')()]
|
||||
postcssOptions: {
|
||||
plugins: [require('autoprefixer')()]
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
|
@ -143,14 +155,20 @@ module.exports = {
|
|||
performance: {
|
||||
hints: false
|
||||
},
|
||||
optimization: {
|
||||
namedModules: true
|
||||
},
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
title: 'My App',
|
||||
template: 'my-index.ejs',
|
||||
devServer: process.env.NODE_ENV === 'production' ? '' : 'http://localhost:8081',
|
||||
// devServer: process.env.NODE_ENV === 'production' ? '' : 'http://localhost:8081',
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "[name]-[hash].css",
|
||||
chunkFilename: "[name]-[hash].css"
|
||||
}),
|
||||
new webpack.NamedModulesPlugin(),
|
||||
new SriPlugin({
|
||||
hashFuncNames: ['sha256'],
|
||||
enabled: process.env.NODE_ENV === 'production',
|
||||
|
@ -188,10 +206,6 @@ if (process.env.NODE_ENV === 'production') {
|
|||
},
|
||||
"COMMITHASH": commitHash
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "[name]-[hash].css",
|
||||
chunkFilename: "[name]-[hash].css"
|
||||
}),
|
||||
new CompressionPlugin({
|
||||
test: /\.(js|css|html)/
|
||||
}),
|
||||
|
|
23
yarn.lock
23
yarn.lock
|
@ -5372,6 +5372,14 @@ license-webpack-plugin@^2.0.0-alpha.7:
|
|||
"@types/webpack-sources" "^0.1.5"
|
||||
webpack-sources "^1.2.0"
|
||||
|
||||
line-column@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/line-column/-/line-column-1.0.2.tgz#d25af2936b6f4849172b312e4792d1d987bc34a2"
|
||||
integrity sha1-0lryk2tvSEkXKzEuR5LR2Ye8NKI=
|
||||
dependencies:
|
||||
isarray "^1.0.0"
|
||||
isobject "^2.0.0"
|
||||
|
||||
lines-and-columns@^1.1.6:
|
||||
version "1.1.6"
|
||||
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
||||
|
@ -5978,6 +5986,11 @@ nan@^2.12.1, nan@^2.13.2:
|
|||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01"
|
||||
integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==
|
||||
|
||||
nanoid@^3.1.12:
|
||||
version "3.1.12"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.12.tgz#6f7736c62e8d39421601e4a0c77623a97ea69654"
|
||||
integrity sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A==
|
||||
|
||||
nanomatch@^1.2.9:
|
||||
version "1.2.13"
|
||||
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
|
||||
|
@ -6923,6 +6936,16 @@ postcss@^7.0.14, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6:
|
|||
source-map "^0.6.1"
|
||||
supports-color "^6.1.0"
|
||||
|
||||
postcss@^8.1.1:
|
||||
version "8.1.1"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.1.1.tgz#c3a287dd10e4f6c84cb3791052b96a5d859c9389"
|
||||
integrity sha512-9DGLSsjooH3kSNjTZUOt2eIj2ZTW0VI2PZ/3My+8TC7KIbH2OKwUlISfDsf63EP4aiRUt3XkEWMWvyJHvJelEg==
|
||||
dependencies:
|
||||
colorette "^1.2.1"
|
||||
line-column "^1.0.2"
|
||||
nanoid "^3.1.12"
|
||||
source-map "^0.6.1"
|
||||
|
||||
prebuild-install@^5.3.5:
|
||||
version "5.3.5"
|
||||
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.5.tgz#e7e71e425298785ea9d22d4f958dbaccf8bb0e1b"
|
||||
|
|
Loading…
Reference in a new issue