haul icon indicating copy to clipboard operation
haul copied to clipboard

Is there a way to configure haul to skip bundling

Open TCourtneyOwen opened this issue 7 years ago • 0 comments

I would like to use haul as a server but don't want it to bundle my files, largely because I am running into some very cryptic errors (Module not found: Error: Can't resolve 'AccessibilityInfo' in 'D:\Excel-Custom-Functions\node_modules\react-native\Libraries\react-native') during the bundling process. Rather than try to endlessly figure out what's causing these errors, I can just build the bundle with webpack, which works like a charm.

I was wondering if there's a way to configure Haul so it just serves up and existing bundle but skips the bundling portion.

Here's my current haul.config.js file that I can point to when starting haul (haul start --config haul.config.js):

const path = require('path'); module.exports = { entry: './src/customfunctions.ts', output: { path: path.resolve(__dirname, 'dist/win32/ship'), filename: 'index.win32.bundle' }, resolve: { extensions: ['.ts', '.tsx', '.html', '.js', 'json'] }, module: { rules: [ { test: /.tsx?$/, exclude: /node_modules/, use: 'ts-loader' }, { test: /.html$/, exclude: /node_modules/, use: 'html-loader' }, { test: /.(png|jpg|jpeg|gif)$/, use: 'file-loader' } ] }, devServer: { port: 8081, hot: false, publicPath: 'http://localhost:8081/dist/win32/ship', inline: true, headers: { "Access-Control-Allow-Origin": "*" } } };

Any help would be greatly appreciated,

Thanks,

Courtney

TCourtneyOwen avatar Sep 20 '18 22:09 TCourtneyOwen