mirror of https://github.com/Chocobozzz/PeerTube
Fix prod build
parent
127944aacb
commit
174d46578b
|
@ -135,7 +135,13 @@ module.exports = function (options) {
|
||||||
test: /\.(sass|scss)$/,
|
test: /\.(sass|scss)$/,
|
||||||
use: [
|
use: [
|
||||||
'css-to-string-loader',
|
'css-to-string-loader',
|
||||||
'css-loader?sourceMap',
|
{
|
||||||
|
loader: 'css-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true,
|
||||||
|
importLoaders: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
'resolve-url-loader',
|
'resolve-url-loader',
|
||||||
{
|
{
|
||||||
loader: 'sass-loader',
|
loader: 'sass-loader',
|
||||||
|
@ -174,7 +180,7 @@ module.exports = function (options) {
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
test: /\.(jpg|png|gif)$/,
|
test: /\.(jpg|png|gif)$/,
|
||||||
use: 'file-loader'
|
use: 'url-loader'
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@ -256,10 +262,10 @@ module.exports = function (options) {
|
||||||
*/
|
*/
|
||||||
// Used by embed.html
|
// Used by embed.html
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{
|
// {
|
||||||
from: 'src/assets',
|
// from: 'src/assets',
|
||||||
to: 'assets'
|
// to: 'assets'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
from: 'src/standalone',
|
from: 'src/standalone',
|
||||||
to: 'standalone'
|
to: 'standalone'
|
||||||
|
|
|
@ -121,6 +121,7 @@ module.exports = function (env) {
|
||||||
'ENV': JSON.stringify(METADATA.ENV),
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
'HMR': METADATA.HMR,
|
'HMR': METADATA.HMR,
|
||||||
'API_URL': JSON.stringify(METADATA.API_URL),
|
'API_URL': JSON.stringify(METADATA.API_URL),
|
||||||
|
'process.version': JSON.stringify(process.version),
|
||||||
'process.env': {
|
'process.env': {
|
||||||
'ENV': JSON.stringify(METADATA.ENV),
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
'NODE_ENV': JSON.stringify(METADATA.ENV),
|
'NODE_ENV': JSON.stringify(METADATA.ENV),
|
||||||
|
|
|
@ -123,13 +123,14 @@ module.exports = function (env) {
|
||||||
'ENV': JSON.stringify(METADATA.ENV),
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
'HMR': METADATA.HMR,
|
'HMR': METADATA.HMR,
|
||||||
'API_URL': JSON.stringify(METADATA.API_URL),
|
'API_URL': JSON.stringify(METADATA.API_URL),
|
||||||
|
'process.version': JSON.stringify(process.version),
|
||||||
'process.env': {
|
'process.env': {
|
||||||
'ENV': JSON.stringify(METADATA.ENV),
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
'NODE_ENV': JSON.stringify(METADATA.ENV),
|
'NODE_ENV': JSON.stringify(METADATA.ENV),
|
||||||
'HMR': METADATA.HMR
|
'HMR': METADATA.HMR
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
/**
|
/**
|
||||||
* Plugin: UglifyJsPlugin
|
* Plugin: UglifyJsPlugin
|
||||||
* Description: Minimize all JavaScript output of chunks.
|
* Description: Minimize all JavaScript output of chunks.
|
||||||
* Loaders are switched into minimizing mode.
|
* Loaders are switched into minimizing mode.
|
||||||
|
@ -269,7 +270,7 @@ module.exports = function (env) {
|
||||||
global: true,
|
global: true,
|
||||||
crypto: 'empty',
|
crypto: 'empty',
|
||||||
fs: 'empty',
|
fs: 'empty',
|
||||||
process: false,
|
process: true,
|
||||||
module: false,
|
module: false,
|
||||||
clearImmediate: false,
|
clearImmediate: false,
|
||||||
setImmediate: false
|
setImmediate: false
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
a {
|
a {
|
||||||
color: inherit !important;
|
color: inherit !important;
|
||||||
display: block;
|
display: block;
|
||||||
background: url(/assets/logo.png) no-repeat;
|
background: url('../assets/logo.png') no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
Loading…
Reference in New Issue