Fix links
parent
9b0ca01aa5
commit
0f3364ad3e
|
@ -55,7 +55,7 @@ module.exports = merge(baseWebpackConfig, {
|
||||||
module.resource &&
|
module.resource &&
|
||||||
/\.js$/.test(module.resource) &&
|
/\.js$/.test(module.resource) &&
|
||||||
module.resource.indexOf(
|
module.resource.indexOf(
|
||||||
path.join(__dirname, '../node_modules')
|
path.join(__dirname, '../../node_modules')
|
||||||
) === 0
|
) === 0
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ module.exports = merge(baseWebpackConfig, {
|
||||||
ignore: ['.*']
|
ignore: ['.*']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: path.resolve(__dirname, '../node_modules/codemirror/mode/*/*'),
|
from: path.resolve(__dirname, '../../node_modules/codemirror/mode/*/*'),
|
||||||
to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js')
|
to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js')
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
|
@ -35,7 +35,7 @@ var webpackConfig = merge(baseWebpackConfig, {
|
||||||
ignore: ['.*']
|
ignore: ['.*']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
from: path.resolve(__dirname, '../node_modules/codemirror/mode/*/*'),
|
from: path.resolve(__dirname, '../../node_modules/codemirror/mode/*/*'),
|
||||||
to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js'),
|
to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js'),
|
||||||
transform: function (source, path) {
|
transform: function (source, path) {
|
||||||
let result = UglifyJS.minify(source.toString('utf8'))
|
let result = UglifyJS.minify(source.toString('utf8'))
|
||||||
|
@ -96,7 +96,7 @@ var webpackConfig = merge(baseWebpackConfig, {
|
||||||
module.resource &&
|
module.resource &&
|
||||||
/\.js$/.test(module.resource) &&
|
/\.js$/.test(module.resource) &&
|
||||||
module.resource.indexOf(
|
module.resource.indexOf(
|
||||||
path.join(__dirname, '../node_modules')
|
path.join(__dirname, '../../node_modules')
|
||||||
) === 0
|
) === 0
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue