rev HardSource
This commit is contained in:
parent
25be46af2c
commit
bb443b3882
|
@ -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);
|
||||||
|
|
|
@ -62,7 +62,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…
Reference in New Issue