This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Visualizer = require('webpack-visualizer-plugin'); | |
//... | |
plugins: [new Visualizer()], | |
//... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
externals: { | |
moment: 'moment' | |
} | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'awesome-transferwise-library'; | |
import 'bootstrap/dist/js/bootstrap'; | |
import 'bootstrap/dist/css/bootstrap.css'; |
OlderNewer