Skip to content
Snippets Groups Projects
Commit 4a19aede authored by Michal Malý's avatar Michal Malý
Browse files

Update node-sass and webpack dependencies

parent 33de60d3
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -48,16 +48,17 @@ const sharedConfig = {
'node_modules',
path.resolve(__dirname, 'lib/')
],
fallback: {
fs: false
}
},
watchOptions: {
aggregateTimeout: 750
},
devtool: ''
}
};
function createEntry(src, outFolder, outFilename, isNode) {
return {
node: isNode ? void 0 : { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
target: isNode ? 'node' : void 0,
entry: path.resolve(__dirname, `lib/${src}.js`),
output: { filename: `${outFilename}.js`, path: path.resolve(__dirname, `build/${outFolder}`) },
......@@ -67,7 +68,6 @@ function createEntry(src, outFolder, outFilename, isNode) {
function createEntryPoint(name, dir, out, library) {
return {
node: { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
entry: path.resolve(__dirname, `lib/${dir}/${name}.js`),
output: { filename: `${library || name}.js`, path: path.resolve(__dirname, `build/${out}`), library: library || out, libraryTarget: 'umd' },
...sharedConfig
......@@ -101,4 +101,4 @@ module.exports = {
createBrowserTest,
createNodeEntryPoint,
createNodeApp
};
\ No newline at end of file
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment