Update webpacker and replace vue with react
This commit is contained in:
parent
81fba4f792
commit
51c79ba6a6
18 changed files with 1073 additions and 623 deletions
|
@ -1,7 +1,5 @@
|
|||
const path = require('path');
|
||||
const { environment } = require('@rails/webpacker');
|
||||
const { VueLoaderPlugin } = require('vue-loader');
|
||||
const vue = require('./loaders/vue');
|
||||
|
||||
const resolve = {
|
||||
alias: {
|
||||
|
@ -10,7 +8,4 @@ const resolve = {
|
|||
};
|
||||
|
||||
environment.config.merge({ resolve });
|
||||
|
||||
environment.plugins.append('VueLoaderPlugin', new VueLoaderPlugin());
|
||||
environment.loaders.append('vue', vue);
|
||||
module.exports = environment;
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
module.exports = {
|
||||
test: /\.vue(\.erb)?$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'vue-loader'
|
||||
}
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue