This file contains hidden or 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
const path = require('path'); | |
const webpack = require('webpack'); | |
const {CleanWebpackPlugin} = require('clean-webpack-plugin'); | |
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
const StartServerPlugin = require('start-server-webpack-plugin'); | |
const NodemonPlugin = require('nodemon-webpack-plugin'); | |
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin'); | |
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); | |
const config = { |
This file contains hidden or 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
const path = require('path'); | |
const nodeExternals = require('webpack-node-externals'); | |
module.exports = (env, argv) => { | |
const SERVER_PATH = (argv.mode === 'production') ? | |
'./app/javascript/server/server-prod.js' : | |
'./app/javascript/server/server-dev.js'; | |
return ({ | |
entry: { | |
server: SERVER_PATH |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script data-main="scripts/core/application.js" src="scripts/lib/require.js"></script> | |
<script type="text/javascript"> | |
// App.com.base.extendPrototype(App.Base, { |
This file contains hidden or 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
js-oop |