|
|
@@ -1,17 +1,17 @@
|
|
|
const path = require('path')
|
|
|
|
|
|
module.exports = {
|
|
|
- // Defines the "entry point" for the application - i.e. the file which
|
|
|
+ // Defines the "entry point(s)" for the application - i.e. the file which
|
|
|
// bootstraps the application
|
|
|
entry: {
|
|
|
- 'rich-text': './public/frontend/rich-text.js'
|
|
|
+ 'rich-text': './public/es/rich-text.js'
|
|
|
},
|
|
|
|
|
|
// Define where and how the bundle will be output to disk
|
|
|
// Note: webpack-dev-server does not write the bundle to disk, instead it is
|
|
|
// kept in memory for speed
|
|
|
output: {
|
|
|
- path: path.join(__dirname, '/public/js/frontend'),
|
|
|
+ path: path.join(__dirname, '/public/js/es'),
|
|
|
|
|
|
filename: '[name].js',
|
|
|
|
|
|
@@ -24,8 +24,8 @@ module.exports = {
|
|
|
|
|
|
// TODO??
|
|
|
// Defines the external modules which will be stripped out when bundling for
|
|
|
- // the rails app. These modules are already loaded in the rails app
|
|
|
- // environment, so we strip them out to prevent conflicts.
|
|
|
+ // the main app. These modules are already loaded in the main app environment,
|
|
|
+ // so we strip them out to prevent conflicts.
|
|
|
// externals: {},
|
|
|
|
|
|
// Define how file types are handled by webpack
|