nconf icon indicating copy to clipboard operation
nconf copied to clipboard

nconf with webpack

Open empierre opened this issue 9 years ago • 3 comments

Hello,

Trying to make a usable app, I want to pack it with webconf.

When launching the result, here is the error:

fs.js:808 return binding.readdir(pathModule._makeLong(path)); ^

Error: ENOENT: no such file or directory, scandir '//nconf/stores' at Error (native) at Object.fs.readdirSync (fs.js:808:18) at Object. (/home/in/MyDomoAtHome/Builds/all.js:139:28568) at Object. (/home/in/MyDomoAtHome/Builds/all.js:139:28837) at a (/home/in/MyDomoAtHome/Builds/all.js:1:169) at Object. (/home/in/MyDomoAtHome/Builds/all.js:1:26186) at Object. (/home/in/MyDomoAtHome/Builds/all.js:2:11648) at a (/home/in/MyDomoAtHome/Builds/all.js:1:169) at /home/in/MyDomoAtHome/Builds/all.js:1:256 at Object. (/home/in/MyDomoAtHome/Builds/all.js:1:261)

Here is the webpack.config.js, mdah.js is here:https://github.com/empierre/MyDomoAtHome

module.exports = { context: __dirname, entry: './mdah.js', target: "node", output: { path: __dirname + '/Builds', filename: 'all.js' }, resolve: { extensions: ['', '.js', '.ts'] }, module: { noParse: /node_modules\/json-schema\/lib\/validate\.js/, loaders: [ { test: /\.ts$/, loader: 'ts' }, { test: /\.json$/, loader: "json-loader" } ] }, node: { console: 'empty', fs: 'empty', net: 'empty', tls: 'empty', child_process: 'empty' } };

empierre avatar Nov 13 '16 18:11 empierre

+1

assisantunes avatar Nov 21 '16 18:11 assisantunes

+1

wjszxli avatar May 24 '17 06:05 wjszxli

see #252

jbreckel avatar Jul 17 '17 07:07 jbreckel