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 = { ...@@ -48,16 +48,17 @@ const sharedConfig = {
'node_modules', 'node_modules',
path.resolve(__dirname, 'lib/') path.resolve(__dirname, 'lib/')
], ],
fallback: {
fs: false
}
}, },
watchOptions: { watchOptions: {
aggregateTimeout: 750 aggregateTimeout: 750
}, }
devtool: ''
}; };
function createEntry(src, outFolder, outFilename, isNode) { function createEntry(src, outFolder, outFilename, isNode) {
return { return {
node: isNode ? void 0 : { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
target: isNode ? 'node' : void 0, target: isNode ? 'node' : void 0,
entry: path.resolve(__dirname, `lib/${src}.js`), entry: path.resolve(__dirname, `lib/${src}.js`),
output: { filename: `${outFilename}.js`, path: path.resolve(__dirname, `build/${outFolder}`) }, output: { filename: `${outFilename}.js`, path: path.resolve(__dirname, `build/${outFolder}`) },
...@@ -67,7 +68,6 @@ function createEntry(src, outFolder, outFilename, isNode) { ...@@ -67,7 +68,6 @@ function createEntry(src, outFolder, outFilename, isNode) {
function createEntryPoint(name, dir, out, library) { function createEntryPoint(name, dir, out, library) {
return { return {
node: { fs: 'empty' }, // TODO find better solution? Currently used in file-handle.ts
entry: path.resolve(__dirname, `lib/${dir}/${name}.js`), entry: path.resolve(__dirname, `lib/${dir}/${name}.js`),
output: { filename: `${library || name}.js`, path: path.resolve(__dirname, `build/${out}`), library: library || out, libraryTarget: 'umd' }, output: { filename: `${library || name}.js`, path: path.resolve(__dirname, `build/${out}`), library: library || out, libraryTarget: 'umd' },
...sharedConfig ...sharedConfig
...@@ -101,4 +101,4 @@ module.exports = { ...@@ -101,4 +101,4 @@ module.exports = {
createBrowserTest, createBrowserTest,
createNodeEntryPoint, createNodeEntryPoint,
createNodeApp 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