better modalCard, integrated i18n with vuejs-i18n and drupal's strings_i18n_json_export
remain to automaticly export jsons and updated json files with webpack and to understand how to access nested translations
This commit is contained in:
@@ -13,7 +13,8 @@ module.exports = {
|
||||
alias: {
|
||||
'vue': 'vue/dist/vue.js',
|
||||
'theme': utils.resolve(themePath),
|
||||
'vuejs': utils.resolve(themePath+'/vuejs')
|
||||
'vuejs': utils.resolve(themePath+'/vuejs'),
|
||||
'assets': utils.resolve(themePath+'/assets')
|
||||
}
|
||||
},
|
||||
entry: {
|
||||
@@ -39,6 +40,11 @@ module.exports = {
|
||||
test: /\.vue$/,
|
||||
use: 'vue-loader'
|
||||
},
|
||||
{
|
||||
resourceQuery: /blockType=i18n/,
|
||||
type: 'javascript/auto',
|
||||
loader: '@kazupon/vue-i18n-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: {
|
||||
@@ -83,7 +89,7 @@ module.exports = {
|
||||
new VueLoaderPlugin(),
|
||||
new ESLintPlugin({
|
||||
// fix: true
|
||||
// exclude: ['node_modules', 'vendor', 'web/core']
|
||||
// exclude: ['web/.eslintrc.json']
|
||||
// cache: false,
|
||||
// ignore: true,
|
||||
// useEslintrc: false,
|
||||
|
Reference in New Issue
Block a user