reapp / reapp-pack Goto Github PK
View Code? Open in Web Editor NEWWebpack config generator for React apps
Home Page: http://reapp.io
License: MIT License
Webpack config generator for React apps
Home Page: http://reapp.io
License: MIT License
Actually two questions here:
webpack.config.js
that is used by reapp run
? Is there a default config for reapp run
?Thanks.
when we view http://kitchen.reapp.io/twitter/tweetView, we get the wrong script,
because we get index.html
:
<script src="main.js"></script>
rather than:
<script src="/main.js"></script>
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?
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
...
seems can not set revison to main.js
in index.html right now, any suggestion?
when develop mobile website, it's a common need to use externals in webpack so i can use a cdn version of file.
Line 234 in 872f351
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.