Skip to content

Instantly share code, notes, and snippets.

View skywritergr's full-sized avatar

George Stefanis skywritergr

View GitHub Profile
var webpack = require('webpack');
module.exports = {
entry: './public/js/render.jsx',
output: {
// Output the bundled file.
path: './public/build',
// Use the name specified in the entry key as name for the bundle file.
filename: 'bundle.js'
},
FROM node:4.3.1-wheezy
# Install app dependencies
COPY package.json /src/package.json
RUN cd /src; npm install --production
# Bundle app source
COPY . /src
EXPOSE 3000
CMD ["node", "/src/server.js"]
@skywritergr
skywritergr / webpack.conf.js
Last active February 24, 2018 18:02
webpack-visualizer
var Visualizer = require('webpack-visualizer-plugin');
//...
plugins: [new Visualizer()],
//...
// ...
externals: {
moment: 'moment'
}
// ...
import 'awesome-transferwise-library';
import 'bootstrap/dist/js/bootstrap';
import 'bootstrap/dist/css/bootstrap.css';