Let's say I have a simple loader, that's supposed to just move a file from source to deploy, i've just copied the rule alone for simplistic state.
{
test: /\.cshtml$/,
use : [{
loader : 'file-loader',
options : {
name : '[path][name].[ext]',
// context :'',
// outputPath : ''
}
}]
}
I've tried a million different combinations with this one, basically once the file-loader processes it, it copies it to the output.path
in webpack config, the path is something like this:
/outputpath/thenfilefromloader/to/folder/goes/here/nameoffile.cshtml
What' I'm trying to do, is more or less, split the string after goes
and concat with output path:
/outputpath/goes/here/nameoffile.cshtml
Is this even achievable? Basically I'm trying to get rid of gulp, these files were just copied with gulp and that's it, but the path was manipulated before it was copied.