Skip to content
Snippets Groups Projects
Unverified Commit c0be790f authored by David Sehnal's avatar David Sehnal Committed by GitHub
Browse files

Merge pull request #195 from MadCatX/update_deps

Update node-sass and webpack dependencies
parents 8c1d1635 4a19aede
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment