mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
rev HardSource
This commit is contained in:
parent
311f9fc243
commit
618143a91d
@ -58,7 +58,18 @@ class WebpackProcess extends ProcessWrapper {
|
|||||||
externals: function (context, request, callback) {
|
externals: function (context, request, callback) {
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
plugins: [new HardSourceWebpackPlugin()]
|
plugins: [
|
||||||
|
new HardSourceWebpackPlugin({
|
||||||
|
cacheDirectory: fs.dappPath('node_modules/.cache/hard-source'),
|
||||||
|
// ufglify would still be saving under embark's node_modules/.cache
|
||||||
|
environmentHash: {
|
||||||
|
root: fs.dappPath()
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
new HardSourceWebpackPlugin.ExcludeModulePlugin([{
|
||||||
|
test: /app[\\/]|contracts[\\/]/
|
||||||
|
}])
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
let webpackOptions = utils.recursiveMerge(defaultOptions, options);
|
let webpackOptions = utils.recursiveMerge(defaultOptions, options);
|
||||||
|
@ -66,7 +66,7 @@ class ProcessWrapper {
|
|||||||
|
|
||||||
_log(type, ...messages) {
|
_log(type, ...messages) {
|
||||||
const isHardSource = messages.some(message => {
|
const isHardSource = messages.some(message => {
|
||||||
return (typeof message === 'string' && message.indexOf('hard-source') > -1);
|
return (typeof message === 'string' && message.indexOf('hardsource') > -1);
|
||||||
});
|
});
|
||||||
if (isHardSource) {
|
if (isHardSource) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user