Skip to content
Snippets Groups Projects
Commit 7ed9ba19 authored by Sarah Fischmann's avatar Sarah Fischmann
Browse files

Update webpack config and translation tools to translate .jsx files

EDUCATOR-823

Updated confinguration of webpack and translation tools to work with jsx files

EDUCATOR-823

changes to webpack config

Fixed space issue
parent d613f37d
No related branches found
No related tags found
No related merge requests found
......@@ -4,3 +4,6 @@ input_encoding = utf-8
[django: **/template/**.html]
input_encoding = utf-8
[reactjs: **.jsx]
input_encoding = utf-8
......@@ -93,7 +93,7 @@ var wpconfig = {
)
},
{
test: /\.js$/,
test: /\.(js|jsx)$/,
exclude: [
/node_modules/,
namespacedRequireFiles
......@@ -125,7 +125,7 @@ var wpconfig = {
},
resolve: {
extensions: ['.js', '.json', '.coffee'],
extensions: ['.js', '.jsx', '.json', '.coffee'],
alias: {
'edx-ui-toolkit': 'edx-ui-toolkit/src/', // @TODO: some paths in toolkit are not valid relative paths
'jquery.ui': 'jQuery-File-Upload/js/vendor/jquery.ui.widget.js',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment