Przeglądaj źródła

Rename directory to es to align with coffee dir

Alasdair Smith 8 lat temu
rodzic
commit
984ecae200

+ 0 - 0
services/web/public/frontend/rich-text.js → services/web/public/es/rich-text.js


+ 1 - 1
services/web/webpack.config.dev.js

@@ -7,7 +7,7 @@ module.exports = merge(base, {
 	devtool: 'cheap-module-eval-source-map',
 
 	output: {
-		publicPath: '/public/js/frontend/'
+		publicPath: '/public/js/es/'
 	},
 
 	devServer: {

+ 5 - 5
services/web/webpack.config.js

@@ -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