Giter Site home page Giter Site logo

reapp-pack's Issues

Exclude node_modules from babel-loader

Actually two questions here:

  1. What is the webpack.config.js that is used by reapp run ? Is there a default config for reapp run?
  2. I'd like to exclude node_modules from babel loader, where can I turn it off?

Thanks.

Fix up noParse support.

Thanks!

Note to current maintainers (@jhopper) to expalian the context of this issue- @natew had added a quick fix for noParse support to webpack config in response to a gitter discussion, but it doesn't work currently.

Custom configuration

I have the following in config/build.config.js

var pack = require('reapp-pack');

module.exports = pack({
  entry: './app/app.js',
  devtool: 'source-map',
  target: 'web',
  env: 'production',
  debug: true,
  separateStylesheet: true
});

The config file is loaded fine but is discarded with this error:

No user config found...
[TypeError: Arguments to path.join must be strings]

It falls through this try/catch when it shouldn't. It should properly default to the current directory without throwing that error.

Specifying config.dir to the above config as process.cwd() it then fails to load 6to5-loader when building.

I'm finding it particularly difficult to customise the build step using Reapp. Is this something that can be made easier? My particular use case is that I want to add a number of additional plugins to Webpack. I would also like to know how to customise the output directory to be something other than ./build. Can you advise on those?

How can I add custom loader?

I've just tried to integrate with my existing application with reapp.
I have few CoffeeScript files in my application.
I put config/build.js and config/build.config.js refered to https://github.com/reapp/hacker-news-app/tree/master/config and https://github.com/reapp/reapp-pack/blob/master/index.js#L59.

module.exports = pack({
  loaders: [
    { test: /\.coffee$/, loader: 'coffee-loader' }
  ]
});

However how can I connect files with under server_modules? Thanks.

โ˜  ls -la server_modules
...
lrwxr-xr-x   1 banyan  staff    96  2 16 01:38 autoprefixer-loader -> /Users/banyan/node_modules/reapp/node_modules/reapp-pack/lib/../node_modules/autoprefixer-loader
lrwxr-xr-x   1 banyan  staff    90  2 16 01:38 bundle-loader -> /Users/banyan/node_modules/reapp/node_modules/reapp-pack/lib/../node_modules/bundle-loader
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.