I try to install Jarvis for a project in my vagrant but without success...
I add the package corretly, I configure my webpack.config and my VagrantFile, but in return I have the message : " This page does not work " on http://localhost:1337/
Next it's my webpack configuration :
// webpack.config.js
var Encore = require('@symfony/webpack-encore');
var path = require('path');
const Jarvis = require("webpack-jarvis");
console.log( path.resolve(__dirname, './web'));
Encore
// the project directory where all compiled assets will be stored
.setOutputPath('web/build/')
// the public path used by the web server to access the previous directory
.setPublicPath('/build')
/** Add entry **/
/*
.createSharedEntry('vendor', [
'./node_modules/epic-spinners/dist/lib/epic-spinners.min.css',
])
*/
// will create public/build/app.js and public/build/app.css
.addEntry('polyfill', ["babel-polyfill"])
.addEntry('app', './web/assets/js/app.js')
.addEntry('entrypoint', './app/Resources/views/front/entrypoint.js')
.addEntry('unityload', './web/assets/unity_map/Build/UnityLoader.js')
//Style
.addStyleEntry('app_style',[
'./web/assets/scss/app.scss'
])
/***************/
// allow legacy applications to use $/jQuery as a global variable
.autoProvidejQuery()
// enable source maps during development
.enableSourceMaps(!Encore.isProduction())
// empty the outputPath dir before each build
.cleanupOutputBeforeBuild()
// show OS notifications when builds finish/fail
.enableBuildNotifications()
// create hashed filenames (e.g. app.abc123.css)
.enableVersioning(Encore.isProduction())
// allow sass/scss files to be processed
.enableSassLoader(function(sassOptions) {}, {
resolveUrlLoader: false
})
// to enable vue
.enableVueLoader()
.enablePostCssLoader((options) => {
options.config = {
path: './postcss.config.js'
};
})
/** Add plugin **/
.addPlugin(
new Jarvis({
port: 1337 // optional: set a port
}))
/***************/
;
let config = Encore.getWebpackConfig();
config.resolve.alias = {
'assets': path.resolve(__dirname, './web/assets')
};
// export the final configuration
module.exports = config;
//module.exports = Encore.getWebpackConfig();
Hi,
I try to install Jarvis for a project in my vagrant but without success...
I add the package corretly, I configure my webpack.config and my VagrantFile, but in return I have the message : " This page does not work " on http://localhost:1337/
Next it's my webpack configuration :
And it's my VagrantFile with the forwared port :
Thank you in advance !!