{
"plugins": [
["module-alias", [
{ "src": "./resources/assets/js/components", "expose": "components1" }
]]
]
}
import CssConfig from 'components1/VuetableCssConfig';
{
"plugins": [
[ "babel-plugin-webpack-alias", { "config": "node_modules/laravel-mix/setup/webpack.config.js" } ]
]
}
This dependency was not found:
* Components/VuetableCssConfig in ./~/babel-loader/lib?cacheDirectory!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/earnings/EarningsTable.vue
To install it, you can run: npm install --save Components/VuetableCssConfig
.webpackConfig({
plugins: [
new WebpackRTLPlugin('/css/[name].rtl.css')
]
})
[ "babel-plugin-webpack-alias" ...]
...
let path = require('path');
mix.webpackConfig({
resolve: {
alias: {
Components: path.resolve(__dirname, 'resources/assets/js/components')
}
}
});
...
import CssConfig from 'Components/VuetableCssConfig'
This dependency was not found:
* Components/VuetableCssConfig in ./~/babel-loader/lib?{"cacheDirectory":true,"presets":[["es2015",{"modules":false}]]}!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/frontend/stat/EarningsTable.vue
отдельная БД для тестов. Советую глянуть в файл phpunit.xml