@fabalous/runtime-node
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -25,2 +25,10 @@ var path = require('path'); | ||
function getMaxFileSize(){ | ||
try { | ||
return __maxAssetSize; | ||
} catch (e){ | ||
return 100000 | ||
} | ||
} | ||
module.exports = { | ||
@@ -74,2 +82,9 @@ entry:entry, | ||
loader: 'awesome-typescript-loader?configFileName='+path.join(__workDir, './node_modules/@fabalous/runtime-node/config/tsconfig.node.json') | ||
}, | ||
{ | ||
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|mp3)$/, | ||
loader: `url-loader?limit=${getMaxFileSize()}&name=assets/[name].[ext]`, | ||
include: [ | ||
path.join(__workDir, './src/') | ||
] | ||
} | ||
@@ -80,3 +95,3 @@ ], | ||
plugins:[ | ||
new webpack.NormalModuleReplacementPlugin(/\.(gif|png|less|css)$/, 'node-noop'), | ||
new webpack.NormalModuleReplacementPlugin(/\.(mp4)$/, 'node-noop'), | ||
new webpack.DefinePlugin({ | ||
@@ -83,0 +98,0 @@ 'process.env.NODE_ENV': JSON.stringify("development"), |
{ | ||
"name": "@fabalous/runtime-node", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Fabalous Node runtime", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19409
411