mirror of https://github.com/FreeTubeApp/FreeTube
Stop setting node modules path now that we bundle the modules (#4809)
This commit is contained in:
parent
9d7500b9a1
commit
31c813ddfd
|
@ -126,10 +126,7 @@ const config = {
|
|||
new HtmlWebpackPlugin({
|
||||
excludeChunks: ['processTaskWorker'],
|
||||
filename: 'index.html',
|
||||
template: path.resolve(__dirname, '../src/index.ejs'),
|
||||
nodeModules: isDevMode
|
||||
? path.resolve(__dirname, '../node_modules')
|
||||
: false,
|
||||
template: path.resolve(__dirname, '../src/index.ejs')
|
||||
}),
|
||||
new VueLoaderPlugin(),
|
||||
new MiniCssExtractPlugin({
|
||||
|
|
|
@ -136,8 +136,7 @@ const config = {
|
|||
new HtmlWebpackPlugin({
|
||||
excludeChunks: ['processTaskWorker'],
|
||||
filename: 'index.html',
|
||||
template: path.resolve(__dirname, '../src/index.ejs'),
|
||||
nodeModules: false,
|
||||
template: path.resolve(__dirname, '../src/index.ejs')
|
||||
}),
|
||||
new VueLoaderPlugin(),
|
||||
new MiniCssExtractPlugin({
|
||||
|
|
|
@ -9,13 +9,6 @@
|
|||
<link rel="manifest" href="static/manifest.json" />
|
||||
<% } %>
|
||||
<title></title>
|
||||
<% if (htmlWebpackPlugin.options.nodeModules) { %>
|
||||
<script>
|
||||
require('module').globalPaths.push(
|
||||
`<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>`
|
||||
)
|
||||
</script>
|
||||
<% } %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue